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.