Results for "Category: Files"
This program counts the ()[]{};"', number of lines, characters and command, and writes an analysis for your use. ALL RIGHTS RESERVED.
In this example we are see how to upload a fixed type of files. we are going to define a function in javascript and using that function we will going to check extension of file which will get upload. also encrypt filename using php so file not get overwrite, we are going to add current time span with filename so if one are more file of same name get uploaded will not overwrite each other. very simple code... see example for details...
The purpose of this article is to demonstrating zipping files using the ZipPackage class in this System.IO.Packaging namespace. This demonstration uses: VB.Net 2008 .Net Framwork 3.0
This article is sample code of file and string functions... Learning aboute search in files and function string... This article uploaded in another host because it size longer... Please download this link : http://www.4shared.com/file/R4UyJAUJ/BestTranslator.html OR http://www.4shared.com/file/R4UyJAUJ/BestTranslator.html
UPDATED 03/JAN/2010: This is a file upload class with a demo page. Very easy to integrate into existing projects, it only requires three steps. The code is nicely commented and formatted. I've also added JavaScript code that disables the Submit button and shows an image and message informing about the upload. If you use Norton AntiVirus you will need to disable your Script Blocking for the file writting to work. The code can support uploads of up to 2GB or so, but I've only tested it with files of up to 30MB. It also supports the configuration of allowed extensions for more security. If you like this code, please vote. Last Update: Added code that takes care of a IIS vulnerability involving semicolons in file names (extremely important!).
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.
How to use Application Configuration Files.
Accessing IniFiles without the use of the Win32 API's
This example shows a way to use the System.IO.FileSystemWatcher object.
Get .exe file header info
Memory mapping is a powerful mechanism Win32 provides to implement shared memory and also to access files though a simple memory pointer without having to implement your own home brewed buffering mechanisms. As an example its as simple as calling void* lpData = mmf.Open(); CharUpperBuff((char*) lpData, mmf.GetLength()); to convert a file (of any length) to upper case. Areas where you might find this of interest include very large database files with fixed records, audio processing, string operations and image processing. The other side of memory mapped files is to implement shared memory. As you will probably know, Win32 puts each process into its own address space, thus making it impossible to pass ordinary pointers across process boundaries. With memory mapped files you get back this very useful mechanism. The enclosed zip file contains the CMemMapFile source code and a simple dialog based application which demonstrates all the functionality of the class. For further details about the example program have a look at the BOOL CTestmemmapApp::InitInstance() function and the CDialog1 member functions both in testmemmap.cpp PJ Naughter at http://indigo.ie/~pjn/index.html
Copy a file from a LAN to UNIX and vice versa.
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.
This code allows a user to - Interactivley explore an area of your computer. - Download files based on a database containing 'credits'. One specifies how many files (credits) one may download and link that to a password (or use -1 for unlimited).
This Code when put in any directory will create a HTML page listing all Mp3's in the directory. It also creates a streaming link to the file, so anyone can stream off you MP3's from your server withour downloading them.
This code shows the size of any given file in bytes,K/bytes and M/bytes....
SaJ is a program for Spliting And Joining Files. I have tested it on win98/2000 and xp. The Split/Join Function is running on a seperated thread and in a low cpu-priority. This, prevents the form from freezing and also it enables to cancel the operation at any time... SaJ is competible with other split\join programs like hjSplit...(considers very popular..) I will be glad to here any comments or bugs reports!! :-)
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.
Generic configuration file handler.