Results for "Category: Files"
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 piece of Code watch for the changes in the specified folder. Changes may be of any kind like renaming file/folder, deleting, editing etc. Actually implemented a class of FileSystemWatcher.
Create Excel Spreadsheet without Excel automation. A port from vb6(enclosed) by Paul Squires at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=11898&lngWId=1
This may seem simple but I didn't find anything like this anywhere and I thought I should add it so it will help others. This artitle is to show you how to send a string variable as a downloadable file in asp.net.
Using the CopyFileEx Win32 API in C#. Try my CopyEx library and please give feedback. Choose a file as a source and copy it to another place. You will have the current transfert rate in Ko/s and percentage of the file done. Very easy to use. You could implement Cancel, Stop and Continue or Thread priority options...
Ever wanted to use .config files but hesitated because you were not able to write to them? This class allows you to easily write and read from .config Files. The class works (thanks to reflection) both in debug and release mode without any changes. Because the default .config Provider will not reload any configuration without reloading the application this feature is also implemented via a filesystemwatcher that looks for changes on the app.config file. The original implementation can be found on www.angrycoder.com developed by Joel Martinez in C#. Visit www.visualsoft-net.de to download this code and much more vb.net, vb6 and c# samples
This sample code show beginner how to use OpenFileDialog and SaveFileDialog with TextBox.
Just to show how to read a txt or .dat file in vb.net
The Tutorial aims at acquainting beginners, of each and every file and directory operations. I have given my main emphasis to reduce complexity and length of code. I am sure you will find it useful. "Please Vote". ;-) Kart
The Tutorial set sights on Accustoming VB Net Developers with sophisticated File Functions. However main weight is rest on Reducing Code complexity. I strongly believe Code that is easy to Understand works better. I am sure you will find it useful. Please Vote and Make my day ;-) Karthik
To save an Embedded Resource and save to file. This will take any embedded resource and save it to any filename you want.
Associating file types(file extension) to Your Application in .NET.This concept had been tedious or complex process in the past for programmers. But with .NET this has been made easy and flexible.You can associate a new file type (extension) or an existing file (like gif,jpg,bmp etc) to your application easily. you can refer http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vbtskaddingdeletingdocumenttypesassociatedfileextensions.asp for understanding.I have submitted an example of how to do this. This is photo viewer .If you install this project,you can open the existing GIF files with this program in your system.You can also associate JPG,BMP and other types also.
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...