What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Reading text file problem...

Reading text file problem...
Author: Message:
Xocide
New Member
*


Posts: 2
35 / Male / –
Joined: Apr 2007
O.P. Reading text file problem...
Hi, I'm trying to make a script that reads from a text file that the script created itself, However whenever it reads a file all I get is:
quote:
˙ūt

Here is the code I'm using to read it:
code:
            var thetxtFile = '';
            var Message = '';
            var TheFile = 'test';
            FSO = new ActiveXObject("Scripting.FileSystemObject");
            if (FSO.FileExists(MsgPlus.ScriptFilesPath + "\\txtFiles\\" + TheFile + ".txt")) {
                    thetxtFile = FSO.OpenTextFile(MsgPlus.ScriptFilesPath + "\\txtFiles\\" + TheFile + ".txt", 1);
                Message = thetxtFile.ReadAll();
                Debug.Trace(Message);
            }


the file test.txt contains "test" in it.

This post was edited on 04-27-2007 at 07:40 PM by Xocide.
04-27-2007 07:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Reading text file problem... - by Xocide on 04-27-2007 at 07:40 PM
RE: Reading text file problem... - by TheGuruSupremacy on 04-27-2007 at 07:47 PM
RE: RE: Reading text file problem... - by Xocide on 04-27-2007 at 07:58 PM
RE: Reading text file problem... - by vikke on 04-27-2007 at 08:02 PM
RE: Reading text file problem... - by TheGuruSupremacy on 04-27-2007 at 10:00 PM
RE: Reading text file problem... - by matty on 04-27-2007 at 10:28 PM
RE: Reading text file problem... - by CookieRevised on 04-28-2007 at 03:25 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On