Results for "Category: Files/ File Controls/ Input/ Output"
SimpleXMLParser is very simple and easy to use xml parser/generator. Demo project is included. Have fun and vote if you find this code useful.
The purpose of this code is to provide an easy drop-in solution to reading and writing RIFF WAVE file formats. The clsWave class requires no external dependencies, and provides only the necessary functions for retrieving WAVE data, extended wave information, and writing WAVE files I had looked at several examples on Planet Source Code to do this, but many had flaws in them (one actually looped to find a fixed-position value in the header), were inefficient, or did not conform well to my own uses. As a result, I've spent the evening writing this class. It can read and write small wave files (~ 50K) within a millisecond or two on any modern computer. My main objective in writing this class was reusability, and I believe I have achieved that quite well. You simply open a file, retrieve the bytes directly in a byte array. To write a wave, you must only set the properties of the class and feed it a byte array (or, optionally specify the header parameters and leave the current instance's headed untouched). I have written this class to be about as efficient and quick as it can be, however if anyone notices something that can be improved (aside from the plotting - this was not the goal, only to demonstrate the class), please leave me a note. Currently only supports a static PCM format (44 byte header). Thanks to Robert's comment, I've learned there is alot more to the header than I assumed. The submission will be updated within a week or thereabouts to add support for all PCM variations - but I do not plan to handle things such as MP3 and other such formats, only PCM.
Just a PictureBox with builtin zooming capability. Note the selection of a region, which works very nicely. The code is not commented, but I think it explains itself.
Fastest duplicate file finding program on the net (as far as i know) look at the screenshot for comparisons. Features include: Limit search results, only search for specific file types, 100% accurate byte to byte duplicate finding, search multiple folders or drives, disallow certain folders you choose, options to search subdirectories or not. Please take the time to vote and comment. Updated apr 14: Code Much neater and commented, more options. Updated apr 15: Move duplicates and non duplicates, View lists, open containing folder, move single file, copy single file. still not completely tested so there might be a few bugs with the new stuff. Zero Byte error (hopefully) fixed
It's a file searcher.Type a path and the name of the file you want to search and it will investigate all folders and sub folders of the path.It's simple and fast.NO API CALLS , NO MODULES just SIMPLE CODE.
This code allows to avoid the problem of a large amount of data to display in a TreeView. Infact, using the population on demand property of this control you can choose to fill only parts of it (fill a node only when the user expands it).
This is a full example of a good range of the uses and feature in the RichTextBox
This is our case study in C#. This is a Point of Sales system. This is quite complete application that performs such operation that it is needed in Point of Sales. This program can be run C# compiler.
This is a complete word counter that counts ANY FORMAT like word, excel, txt, csv, xls etc. It counts for Char with or without spaces, word count and linecount. It pretty easy and it counts without the use of Split() function. It uses the word object from the microsoft word 11.0 object library so need referencing. I haven't included exporting but you can at least copy to the line count. The good thing with this one, is that you can simultaneously count up to 500 files plus. I really don't know the maximum limit but it'll depend on the system memory i think. This is good for the transcriptionist industry. Hope this helps to some!!! If you have any suggestions on how I can improve this, just let me know.
This code is a COMPLETE library of functions which allows to recover more informations about files/folders/disks (logical and physical) and faster than FileSystemObject. It replaces totally FSO as it is faster, more complete and easy to use. There is about 100 functions and 80 properties availables. Thanks for your comments, and sorry for my bad english (I'm french ^^) If you have ANY IDEA to improve performances of this classes, please post a comment ! Thanks.----------------- UPDATE1 : Fixed some bugs, added lots of new functions (file/disk sanitization DOD 5220.22-M, files comparison, creation of ISO files from a drive, possibility to change file/folder dates, possibility to cut files into parts etc.)-----------------UPDATE2: Fixed some bugs, added new functions (file/folder search with different criteria etc.)-----------------UPDATE3: Fixed a bug
You don't have to be limited to 64K size files for a for a standard Textbox control in VB6. This small sample project shows you how to load, edit and save plain text files, UNLIMITED by file size using the Standard VB6 Textbox control. It's all done in just a few simple lines of code. Please note that this method works on NT, Windows 2000, XP and Vista. If you're coding for systems that use Win95/98 or ME this method will not work. View the readhuge.txt file for full details. (UPDATE: Changed method from Clipboard method to an API method which is even more efficient and does not mess with any data in the clipboard and the end result is the same. Thanks to Kenneth Buckmaster and Rob C. for their input.)
This code is a working (that i know of) Auto-Updater that uses the INet Control to connect to a webserver to update the files. Im currently using it in my project and its working beutifuly. The code is also EXTREAMLY Commented, i did this before submitting it. This is my first submission to psc so post comment if you have any problems.
this programe is a sample source code for build a sample File Editor on c,c++ , becarfull for you how to compile it ! the files are include , source and Executable programe, and Cpp for dev-cpp compiler , its good for young programing . the programe is a sample , windows wordpad in c, c++ language .
FFT (fast fourier transform)
This code will allow you to read a file extremely fast and grab its MD5. On a Pentium D 3.6 ghz it can read Explorer.exe and hash it 50 times in under a second. Please try it out and submit any comments or questions. Update (1/1/08) - Cut down the speed by over 100% by not converting the buffer into a string value. Cut down the size of the code by removing unnecessary functions.
This is a program that will securely erase a file. This program was coded so that it can be copied into a module without needing to make modification. this method of mine works by randomly generating a random character then overwriting every character in the file with it, Then on the next pass over use a new character. This program will let the user pick how many passes to make on the file as well. The code is commented but please let me know if you have further questions. Also this is my first upload, please let me know what you think and Enjoy!!!
A simple local keylogger
This is my first submission on this site. It copies all files (no subfolder) in a folder and displays number of bytes copied in a Progress bar as well as in numbers.
This code will zip any file or folder
Rich Design Time Editing with UITypeEditors (VB.NET). How to use UITypeEditors, Smart Tags, ControlDesigner Verbs, and Expandable Properties to make Design Time editing easier. Version 1.3