View Full Version : iomode question
hat7159
10-19-2002, 05:14 AM
I have a question about file system objects. when opening an existing text file, is there a way to open it for reading and writing, with the cursor at the beginning of the file....and is there a way to open a file for appending and then move the cursor backwards?
boywonder
10-19-2002, 01:20 PM
not in javascript.
hat7159
10-19-2002, 04:02 PM
ok, i am adding data to a text file, and what i need to do is to read in the beginning of the line to move the cursor to the correct line, then, i need to write data in the correct spot on that particular line. Does that provide any possibilities?
joh6nn
10-19-2002, 10:37 PM
i have to assume that you're talking about using MS's JScript to do some sort of file processing on your own computer.
in my own experience, read/write access on files, doesn't work. i could get read only to work, i could get append to work, but i couldn't get read/write to work. i don't know if it's a bug, or i just repeatedly did something wrong, or what, but i never got it to work. i just ended up using a batch file, which was about 9 times easier, and way faster. unless you absolutely have to use JScript for this, i suggest using a batch file.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.