[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  Reading and Writing to Files/Variables/Arrays

Reading and Writing to Files/Variables/Arrays

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Nickpick   (24 posts)  [Biography] bio
Date Sat 08 Apr 2006 10:38 AM (UTC)
Message
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?
[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 08 Apr 2006 11:46 AM (UTC)
Message
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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nickpick   (24 posts)  [Biography] bio
Date Reply #2 on Sat 08 Apr 2006 01:35 PM (UTC)
Message
Thank you.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,622 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]