What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Trying to write on a .txt file

Trying to write on a .txt file
Author: Message:
iklipxe
New Member
*


Posts: 4
Joined: Jan 2008
O.P. Trying to write on a .txt file
Hello,

first sorry my english (i'm portuguese)

I have this code:

code:
function AddLineToFile(file, line)
{
    if (!fsObj.FileExists(MsgPlus.ScriptFilesPath + '\\' + file))
        var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 2, 1);
    else
        var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 8, 0);
    fileObj.WriteLine(line);
    fileObj.Close();
}

that i took from here

and in the debug it say's that fsObj doesn't exist :S what am i doing wrong?
01-13-2008 09:24 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Trying to write on a .txt file - by iklipxe on 01-13-2008 at 09:24 PM
RE: Trying to write on a .txt file - by Dheano on 01-13-2008 at 09:46 PM
RE: Trying to write on a .txt file - by roflmao456 on 01-13-2008 at 09:51 PM
RE: Trying to write on a .txt file - by iklipxe on 01-13-2008 at 09:53 PM
RE: Trying to write on a .txt file - by iklipxe on 01-13-2008 at 10:42 PM
RE: RE: Trying to write on a .txt file - by davidpolitis on 01-14-2008 at 04:36 AM
RE: Trying to write on a .txt file - by roflmao456 on 01-14-2008 at 01:10 PM
RE: Trying to write on a .txt file - by iklipxe on 01-14-2008 at 10:57 PM
RE: RE: Trying to write on a .txt file - by pollolibredegrasa on 01-14-2008 at 11:17 PM


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