let's say i have a .dat file and .hdr file .... i have to compare both of them .... how can i open both of them at the same time and then compare them ? do you think is it prossible? pls help me?
The file Access component consists of two objects that give script access to textfiles. The textstream object lets your script open,read from and write to text files. Caution: These objects cannot be used with binary files!
First create a filesystemobject and bind it to a Binder by the set command.
Set fs = CreateObject("Scripting.FileSystemObject")
now by using the binder fs you can open any number of files with seperate handlers. eg.
Set Mystream1 = fs.OpenTextFile(filename1, iomode,create,format)
Set MyStream2 = fs.OpenTextFile(filename2,iomode,create,format)
Mystraem1,Mystream2 are two seperate handlers for the specific files, filename1 and filename2.
The filname1,filename2 etc argument is the only required one. Of the remaining optionals, the iomode can be one of the following constands:
ForReading --- read only
For Appending ---- file opend for appending data
The create is a boolean value which notify its succees or failier.
The format is again True or False. True means UNICODE, False
Now you can read write your files by the filehandlers. eg.
characters is the number of characters
All means, the entire contents of the file
Line meane one line at a time.
Write(string) writes a string into the file without a newline characher, whereas WriteLine writes the string and append it with a newline character.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...