senshi -
Joined: 05 Nov 2003 Posts: 385 Location: UK
|
Posted: Mon Aug 23, 2004 1:57 am Post subject: Save and read |
|
|
Does anyone have any idea on how to open a file (text) and read in the information into an array or string variable.
Also the oposite, writing to a file (text) too.
I have seen some so called examples but hey dont do anything other than allow you to navigate to a file, the routine doesnt open the file just chooses, so IM asking if anyone knows how to read in the data.
The language... javascript.... the machine... local to the webserver, which is what I will be using. No need to worry about the fact its client side, the browser and server are on same machine.
Reason is I need to beable to save information to files and then use the files at a later date within the webserver.
Anyone got any ideas, and please, dont suggest javascripts.com, hotscripts, snippit the other one thats DHTML based and the other three obscure ones that only repeat the content of jacascripts.com and hotscripts.com. Been and done it and no good, dont tell me what I need to know which is why IM asking in here.....
In a bit. |
|
senshi -
Joined: 05 Nov 2003 Posts: 385 Location: UK
|
Posted: Mon Sep 06, 2004 2:55 pm Post subject: |
|
|
I have it sorted.
Took me a while but I found sme intresting info that was lurking in the bowels of MSDN. They are nice enough to give Jscript and VBscript versions of examples...
I got my file save and load sorted, nearly, its the appending bit that really screws up!
But I will have it sorted nodoubt sometime soon, I hope to have something intresting to play with soon. |
|