Results for "Category: Files"
Create a 2 dimentional array (rows and columns) out of a semicolon delimited text file. by Travis Barney
Save entire classes or structs at a time to an xml file, and then read them back.
This script provides simple, friendly control of the FileSystemObject of the ASP engine. Fully commented descriptions of each function. Just include this file in any script that need to access the file system.
This demonstrates an example of C++'s fstream File I/O. Very simple; the basic stuff for beginners to learn from. If you would like to see how to do something more in the direction this code leads, comment on (and rate) it telling me what specifically you want to see and I'll be glad to suffice.
This code simply writes to a file on the disk, or reads the contents of an existing file on the disk into a text box.
This code (the first of its kind in the VB.NET section of PSC) will allow you to quickly and easily send a file over dialup, LAN or BroadBand. Works fine, and all the programs that i tested it on (from 20k to 200Meg worked fine after the transfer!) If you have a brief knowlage of file manipulation, this should be pretty simple to understand.
For circular logging System
OK..I updated the class, so it looks better and faster. It is Win32 compatible and it comes with a sample on how to use it. Got a feedback not so long ago and i must admit i was pretty hurt, anyway i took some times to fix the bugs.
This shows how to display files in a folder sorted by parameter (name,size date). You can sort in either direction (ascending or descending).
a class to make using fstream easier. NOTE: after a call to openfile() it is HIGHLY recomended to call closefile()
Uploads up to 5 files user PHP, works perfectly on win32 servers such as IIS or Apache for windows. Demonstrates the use of copy(), functions, and switch operators.
This code will allow you to do form based file uploads. It supports multiple files and uses only pure ASP. It will parse form data, browse server folders for a save location, and log uploads or failed uploads into a database There are no components to install so it will work on any web server that supports ASP. Just paste this code into a text file and name it saveany.asp. I have tested it on IIS 4 and 5, with IE 4, IE 5 and Netscape 6. With this code you will be able to save a file in any directory that the anonymous account assigned to it (usually IUSER_machinename) has access to so be careful. I should note that the server needs ADO, ADOX and the File System Object installed on it.
CALL THE ShellExecute FUNCTION TO RUN ENY FILE AND IT WILL OPEN IN IT'S DEFAULT PROGRAM I USED FILE_ADDRESS TO DETERMINE THE ADDRESS FOR MY FILE CHAING IT FOR YOUR CONVENIENT THIS WAY WE CAN OPEN ANY FILE TYPE . ENJOY .
This simply code, make .xls fine dinamically. You can create worksheet and report. Any feedback is appreciated.
This is a drawn out example of reading and writing with the FileScriptingObject. This is similar to copying a file, but allows rewriting specific line(s). It's intentionally overdone so that you can delete what you don't want. Includes extensive error handling. I've included lots of comments for newbies. 'T Runstein
DirWalk demonstrates how to read a directory structure. Its output looks like TREE MS-DOS command (CONSOLE). I used FindFirstFile and FindNextFile Win32 API functions to program it. It does everything in one function, a recursive function. DirWalk only shows directories, not files. You can modify it to show the files too.
InFile searches by a string like "Microsoft Corporation" inside any file you want, case sensitive or not, within subdirectories or not. Example: infile c:\*.txt "Copyright (C)" -sub -case Functions used: FindFirstFile, FindNextFile, fopen, fseek, fread, SetCurrentDirectory, GetCurrentDirectory.
Create a download page for your files, and log who downloads them (by capturing their IP address/DNS Host name), and count the downloads by day, week, etc
This program creates a html file in the remote server with the name, content, title as preferred by the user (Dynamic).
This is a good little tutorial type thing that allows you to run simple PHP pages and see how it works... I will be adding more to this.. I have updated this file on 07/07/2001 if you have downloaded it before that you may want to get the new one. I have added a little more functionality.