Reading and Writing to Files/Variables/Arrays

Posted by Nickpick on Sat 08 Apr 2006 10:38 AM — 3 posts, 16,464 views.

#0
I've been trying this for a bit now, but I just can't find the right function.

Here's what I want to do:

1.) Trigger fires for the line: "TEST LINE"
2.) The client stores the following in a .txt file or a variable:

LINE1
LINE2
LINE3

3.) Client waits for the line: "ACT TEST"
4.) Trigger fires at the line "ACT TEST"
5.) Client reads the first line, i.e. LINE1, and sends to the world "LINE ONE HAS BEEN READ OUT"
6.) Client rewrites the line with as blank.
7.) Client waits for the line: "ACT TEST"
8.) Trigger fires at the line "ACT TEST"
9.) Client reads the first line, i.e. LINE2, and sends to the world "LINE TWO HAS BEEN READ OUT"
10.) And so on until all lines are readout

I know how to do with C++, but how do you stone something in this format in MUSH VBScript?

Any ideas?
Australia Forum Administrator #1
I'm not absolutely sure I understand the question, however this post deals with accessing files from VBscript:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1979
#2
Thank you.