Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

C_Volume2 #74991
Standard IO (StdIn/StdOut/StdErr) Wrapper Class (Updated)

This is a simple class that allows you to read from standard in (StdIn) and write to standard out (StdOut) and/or standard error (StdErr) via API calls. This allows you to do things like inputting a data file from the command line (i.e. - “C:\vb\YourProgram.exe outputfile.txt”) or output an error to the calling application (i.e. – “YourProgram.exe 2> errors.txt”). The class has been tested pretty well, but your mileage may vary =) UPDATE: Fixed a sloppy coding bug (forgot to rename the copy-n-pasted StdErr function, d'oh!). If you find a bug or want to suggest an improvement, please lemme know! Thanks and enjoy!

C_Volume2 #75033
WhiteSpace Editor

Appends invisible text to files using non-printing characters. This amounts to fairly good encryption only visible in a hex editor. Some subclassing is used so pushing the end button from the VB IDE will crash it. Updated 12-17-2002. Now uses RTF.

C_Volume2 #75037
Saving Files

FOR BEGGINERS - This article explains clearly about how to save files in VB 6.0, it is SUPER EASY to fallow and explains everything very well.

C_Volume2 #75040
Get a list of directories (recursive) in a treeview

This code generates a treeview of a specified folder and it's sub folders (recursive)

C_Volume2 #75049
_+Compression Methods+_ V 1.04

I've got a lot of questions about if there was an update on packers collection, well, here it is. I have updated most of the compressors to handle filesizes over 64K. improved a lot lot of speed isseus. added some new compressors. great speed update on some coders (mostly BWT). I've got a uge amount of mail from people who liked the first version of my programm and also people who sended me some tips to speed up some methods. so I can't take all the credits for this update. I hope you all like this update as much as the first version and if you want to vote for it, please do so, couse with the first version something went wrong with the server and the actual winners of the coding contest didn't get the recognation they deserved.

C_Volume2 #75059
Chicken v1.0

This program will simulate a chicken.(Not a very good program and not finished)This program can show you how to open a file and write to it.

C_Volume2 #75095
Manually INI (NO API !!)...just to exceed that 64k limit set by api

Well, my IGCSE mocks just finished yesterday so I was thinking what to do...so just to brush my skills (:D), I made this... We all know what the heck are INI files (if you don't, read their brief description at the bottom)...but did you know that these INI files have a size limit? YES! You see, when you call the Windows API, you will not be able to read files that are bigger than 10kb (on win 9.x i think...correct me if I am wrong) and 64kb on win me/nt/2k. So the next time you try to read a value that is held in position after the 64k/10k mark on a file, all u'll get is a blank (you can do the GetLastError API to see what error was, never tried it though). But HO HO! (look who comes to the rescue) During the past 1 and a half hours (or something), I just wrote a class that will read INI's all by opening them for input and output, and ofcourse, parsing them on their way. So now, throw away ur existing API INI classes and replace these. Features: 1. No more INI File size limit 2. Useful for writing file formats. Yes! For example, I previously wrote an INI script format(crazy idea, huh?) in which some values of keys were actually the names of other keys and in this way, a flow of data can be formed that doesn't have to follow hard-coded format. 3. As fast (well, almost....now, reading a teeny weeny value from a 500kb file that contained 50,000 items took 5 seconds or something on my computer...btw, the file was generated to test the class. Also, there is hardly any noticeable difference between the API and this class even if the file is smaller than 64k). 4. Other features that were included were: Read/Write value (basic INI I/O), Delete a key, Delete the whole darn Section, get all sections (only sectionsuseful for enumerating...file formats!), get all keys with their values all together (useful for enumerating...again file formats!), write values all at once from an array (instead of doing them one by one, which may get slow). 5. It's a drop-in class...just drop and use! very easy parameters to follow :) WHAT INIs ARE: INIs came along with the advent of Windows OSes. They were initially (and, well, still are) are used for storing settings of a program. You can say INI is a standard file format for saving settings (I say standard when I mean Windows standard). Windows supplies APIs that make it easy for us, the developers, to read and write values using just plain strings, which the Windows APIs organises into a format in a file. The format is: 1. There is a section that represents a number of keys (both of which you set) 2. There are keys that represent values (you set the values too) 3. Then there are other sections, 4. with other keys, 5. with other values. 6. blah blah and oh ya, I didn't do an example cuz I think almost everyone might have come across INI files (and anyway, it will take only 3 lines max to write a value to a file using this class) (vote if you like :D...I dont mind, nor do I bite...so criticism [not in a harsh way, mind you] may be appreciated.) Tata!

C_Volume2 #75098
Enhanced INI File Functions

With this class you can: - Create / Add INI sections and keys - Delete / Remove INI sections and keys - Rename / Edit ini sections and keys - Update key values - Specify your own format to create your own standard of config file. Very well commented!! Please vote for me!!

C_Volume2 #75134
File/Folder Browser

A file/folder browser that doesn't use the drivelistbox,dirlistbox or filelistbox. Small bug fix - sorry A vote or two would be nice

C_Volume2 #75146
VBSINI2

With this ocx you can access INI Files from vbScript, VisualBasic, ASP (maybe). Read, Write Keys, Read all KeyNames of Sections, Read all Sections of an INI file. Delete a Key, Delete Section ..... The Readme.htm shows how it works. This Upload has now also include a Demo for Visaul Basic and vbScript. Also included is the code for the OCX, it's written with VB6 and it's a good demo for the how to create an ocx file. Please vote for this code

C_Volume2 #75190
CreateDirectoryStruct

Creates all non-existing folders in a path. Local or network UNC path.

C_Volume2 #75233
File Type Association

Create file extension for your application.

C_Volume2 #75245
EZ INI Module to read / write INI Files

Offers 6 ini functions that are extremely useful. Handy, because it has a "setup" function that specifies the filename and the number of characters you'ld like to retrieve (max) so that you don't have to re-specify them every time you write to your INI file (great if you only have one or two INI files per project). Someone else did a "complete INI module" that actually hard-code edited the ini file to find out the number of sections, and so on, but this one uses in-built features of GetPrivateProfileString. Have fun! Read_Ini -- Returns a string with the appropriate INI key in it Write_Ini -- Writes to a specific ini key Read_Sections -- Returns a Chr(0) delimited string containing all the [Sections] of the INI file Read_Keys -- Same as above, but returns all the keys=values under the appropriate section Delete_Key and Delete_Section do just what they say =) Note: vbCrLf's are turned into a funky string because I noticed when writing vbcrlf's to ini files it has the tendency to screw up and actually place them on separate lines so you can't retrieve the whole thing again. The funky string is recognized by this module when you read the values in again, and converts em back to vbCrLf

C_Volume2 #75252
a INI file manipulation project. VERY easy to use!

Might not be very fitting for complexe ini manipulation, but this is the simplest and easy to use code i've found. Great for the newbie i am myself. It's not my code, and i don't know who it comes from, but i thought i'd share it. Included is a VERY easy to understand sample project ! Cheers, and enjoy :)

C_Volume2 #75253
all kinds of cool ways of using the shell command

These different ways of using the shell command will let you : Launch files without knowing the associated program(doc,bmp,zip,etc), copy files and complete directories, run dos commands, launch a browser, launch an email client with almost all fields prefilled(including body!) and loads of stuff you might think of.

C_Volume2 #75258
Launch any file!

With this little function you can LAUNCH ANY TYPE OF FILE that windows reconizes. This means that you can open any type of file that windows has the application for it. For example: You can run a file named "movie.rm" (RealPlayer fomat), but if you don't have Real Player installed, the function just won't do anything! No bugs at all!

C_Volume2 #75267
A GOOD WAY TO: Save&Load a Rich Text Box contents!

This code is VERY usefull! It can load a files contents into a Rich Text Box and also save the contents!

C_Volume2 #75328
FileWork.bas

A collection of file associated functions such as GetLongFilename(), GetShortFilename(), GetFilePath(), GetFileTitle(), Exists(), etc.

C_Volume2 #75329
InitEntry.bas

Excellent functions for saving(SetInitEntry) and retrieving(GetInitEntry) data in ini files. Includes routines for a RecentFile menu (GetRecentFiles, AddRecentFile, RemoveRecentFile) which automatically fill and update your menu.

C_Volume2 #75341
The File Shredder 1.0

TFS 1.0 will take any number of files - via a drag and drop interface - and overwrite them with random characters how ever many times you like (up to 1000 million). Then it will corrupt the file using random hex values before rewriting it with "". Finally, the file is deleted. I think it is quite secure; please could you let me know what you think via feedback?

Languages
Top Categories
Global Discovery