Results for "Category: Files"
This is a brute-force attack on file uploads, to learn how they work. Hopefully the zip will help others.
This is an advanced version of the folder walkthrough code I had posted earlier. I'm sharing this with everyone and welcome any modifications and suggestions. This allows you to delete files, download files (even known types) and the best option of all - view files in the browser - source code and all - really useful when you want to see the code of an asp page instead of the output html file. I have added the paging feature on Tom's recommendation. Now you can decide the number of files to be displayed per page either through the code or through the querystring. Useful when you have a large number of files in a folder - You might experience a timeout as Tom found out.
Allows you to edit your documents online in a friendly MS Word(tm) like interface, on a fast loading javacsript and asp powered, easy to maninpulate and configure editor. NEW! Added delete function (due to demand). See stingray.co.nz/asp for the latest updates and a full rundown of every tag, asp and javascript.
Replace ugly browse button with any image in form element inpu type="file". This is good in form which purpose is uploading pictures.
Use it to recurse (walk-through) every sub-directory of any given path. Use it to find a file or list all files in any given path.
This Will Display All The Files, File Size and file date of every file in the directory you specify. To make this work, paste the code into your favorite html editor, save it and then view it.
Get .exe file header info
The following code sample illustrates how to search from a given directory downward through the entire directory tree. The sample output from this example is directed to the system debug screen. For this example, the first class member (below) is called by a menu item. After the search is finished, a message box pops up. http://www.concentric.net/~cgalbrai/dirsrh.shtml
Copy a file from a LAN to UNIX and vice versa.
This code shows the size of any given file in bytes,K/bytes and M/bytes....
My code Merges two Files together and puts them into a single file.It is a windows proggie but the code will also work under dos or other os's.PLEASE VOTE!
Generic structure disk file manipulations. These functions form a basic template for reading and writing structures to a sequential file. This template is probably most useful for files with 500 or less records and eliminates the need for a more elaborate file handler such as C-Tree, DB-Vista, Mix etc. Routines to put data in the struct is out of scope here. Written by Lynn Nash 8/28/91 and donated to the public domain.
This is a slightly more advanced topic than what I have covered so far, but I think that it is useful, and I think it will be useful to many people. File i/o is basically reading, and writing files. This lesson will only cover text files, that is, files that are readable through a text editor, as opposed to binary files(exes for example). It will not cover a great deal, for example, this lesson will not deal with searching files or reading specific data from files. It will merely be concerned with opening, writing, and reading text files. Don't worry though, lesson 11 will cover much more on this topic.
This program allows you to find a file or a directory in a specified drive (e.g. your hard disk, a floppy, your cd-rom...). It search for it in all the directories you have in that drive. Click Luke to go to my Web Page: other source code available...
MAXIMUM SECURITY (CDynamicEncrypt) Is really a simple class it inherits the CFile class of MFC and override Write, Read & Seek functions so that you can use them normally. but the data that is saved or read is encrypted and decrypted at the run-time, YOU DONT NEED TO ENCRYPT YOUR FILE AFTER YOU FINISHED ALL OF IT. YOU DONT NEED TO DECRYPT IT AT ALL IN ORDER TO READ IT. Thinks about it when saving sound and bitmaps of your product encrypted all the time and you use the normal classes you already use that utilizes the CFile class to read these encrypted files.
This simple application browse your network neighborhood and by double click on any share it browses the files...IF THIS CODE HELPS YOU VOTE FOR ME this only takes seconds from u and it took me much more than that to make this prog for u :) thnx ...
Encodes files with a password you choose and decodes them back if runned again with the same password. If you like this program, I would be glad if you rated it for me to know how many users like this program.
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.
For circular logging System
a class to make using fstream easier. NOTE: after a call to openfile() it is HIGHLY recomended to call closefile()