Advertisement

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

ASP_Volume2 #33987
_+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.

ASP_Volume2 #33997
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.

ASP_Volume2 #34033
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!

ASP_Volume2 #34036
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!!

ASP_Volume2 #34072
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

ASP_Volume2 #34084
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

ASP_Volume2 #34128
CreateDirectoryStruct

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

ASP_Volume2 #34171
File Type Association

Create file extension for your application.

ASP_Volume2 #34183
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

ASP_Volume2 #34190
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 :)

ASP_Volume2 #34191
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.

ASP_Volume2 #34196
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!

ASP_Volume2 #34205
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!

ASP_Volume2 #34266
FileWork.bas

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

ASP_Volume2 #34267
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.

ASP_Volume2 #34279
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?

ASP_Volume2 #34283
VBP Project Map

I recently started working on a huge Visual basic program (150+ forms). I needed a quick way to find what was calling what. After not finding anything, I made this. It basically loops through the vbp, frm and bas files to develop a relationship of forms in a tree control. Beware, there is some spaghetti in this app. Enjoy!

ASP_Volume2 #34286
File Loading Methods Compared

This example compares four file loading methods, (the normal VB Open method, the ReadFile API, and other methods involving MemCopy API), you will also see the difference between returning a String or a Byte Array. I did this example because I keep seeing people using the normal VB Open command to load files, even for Hex editors, as you will see there's a huge difference between using it and using an API. The test in the screen shot was made with a 1GHZ P3 Notebook with 384MB RAM (as a compiled .EXE), please note that times may vary from test to test depending on what your computer's doing, etc. Comments and/or improvements as well as votes are welcome.

ASP_Volume2 #34312
Motion Detector

This code detects motion on videogram streaming from a WebCam. Once detected it saves the corresponding dequence of images in .bmp format

ASP_Volume2 #34323
Windows Explorer Background

If you want to see your any folder background beautiful then try it!!!

Languages
Top Categories
Global Discovery