What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Save strings

[Help] Save strings
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: [Help] Save strings
quote:
Originally posted by Huhu_Manix
Oooh you want to read the file too...it's not important ! ^^'

Take this but i think there's better function than this :

code:
function read(file) {
    var FileSystem= new ActiveXObject('Scripting.FileSystemObject');
    var file = FileSystem.OpenTextFile(file, 1); 
        lines = "";
        while(!file.AtEndOfStream) {
            lines += file.ReadLine()+"\n";
        }
    file.Close();
    return lines ;
}


code:
function readFile(file, isUnicode){
    var fileStream = new ActiveXObject('Scripting.FileSystemObject').GetFile(file).OpenAsTextStream(1,((typeof(isUnicode) != "undefined" && isUnicode) ? -1 : 0));
    var data = fileStream.ReadAll();
    fileStream.Close();
    return data;
}



This post was edited on 08-04-2006 at 03:16 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
08-04-2006 03:13 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Save strings - by Anton on 08-03-2006 at 04:38 PM
RE: [Help] Save strings - by Huhu_Manix on 08-03-2006 at 06:24 PM
RE: [Help] Save strings - by Ezra on 08-03-2006 at 07:36 PM
RE: RE: [Help] Save strings - by Anton on 08-04-2006 at 01:50 PM
RE: [Help] Save strings - by Huhu_Manix on 08-04-2006 at 01:56 PM
RE: [Help] Save strings - by RaceProUK on 08-04-2006 at 01:58 PM
RE: [Help] Save strings - by Anton on 08-04-2006 at 02:38 PM
RE: [Help] Save strings - by -dt- on 08-04-2006 at 03:13 PM
RE: [Help] Save strings - by Anton on 08-08-2006 at 07:16 PM
RE: [Help] Save strings - by Shondoit on 08-08-2006 at 08:19 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