I would like to use script that both writes to, and reads from a file, but I have no idea on how it's done.
Perhaps it's just me, but I find Microsoft's home site for VBS very un-intuitive. It takes me a long time to track down the documentation for a particular command.
My intention is to save to a file, a list of values. For example:
crown,bluechest
gloves,bluechest
boots,bluechest
dagger,redchest
sword,redchest
poison,blackchest
poison,blackchest
The number of items in the list may vary, so the save and load script should be able to handle that.
The file does not need to remain open all the time.
I used to know how to do this kind of thing using turboPASCAL, but VBS seems completely different in it's file handling calls.
Your help is appreciated.
Perhaps it's just me, but I find Microsoft's home site for VBS very un-intuitive. It takes me a long time to track down the documentation for a particular command.
My intention is to save to a file, a list of values. For example:
crown,bluechest
gloves,bluechest
boots,bluechest
dagger,redchest
sword,redchest
poison,blackchest
poison,blackchest
The number of items in the list may vary, so the save and load script should be able to handle that.
The file does not need to remain open all the time.
I used to know how to do this kind of thing using turboPASCAL, but VBS seems completely different in it's file handling calls.
Your help is appreciated.