What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Solved] Need help for concatenating strings

[Solved] Need help for concatenating strings
Author: Message:
pauleeer
New Member
*


Posts: 2
Joined: Aug 2008
O.P. [Solved] Need help for concatenating strings
The problem is very stupid but I really can't find a solution.

My code is:
code:
        var fso = new ActiveXObject("Scripting.FileSystemObject");
        ts = fso.OpenTextFile(filepath, 1); //filepath does not contains errors
        ssvar = "The file contains: \n\n";
        var line = ""; 
        while(!ts.AtEndOfStream)
        {       
             line = ts.ReadLine();       
             if (line != "")
             {       
                 ssvar = ssvar + line; //This WONT work, how to concatenate strings??
                 Debug.Trace(line); //THIS trace correctly fires the line's text
             }           
        }
        ts.Close();

        Debug.Trace(ssvar);//THIS trace WONT display anything but "The file contains: \n\n"

As you can see this code is a piece of cake.. but I really can't figure out why it simply doesn't work. I've tried with ReadAll function but that function won't even read the file. The file is in ASCII text format and is less than 1 KB. Does not contains strange characters.

Help me please :(

This post was edited on 08-31-2008 at 09:37 PM by pauleeer.
08-30-2008 11:52 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Solved] Need help for concatenating strings - by pauleeer on 08-30-2008 at 11:52 PM
RE: Need help for concatenating strings - by matty on 08-31-2008 at 06:19 AM
RE: Need help for concatenating strings - by pauleeer on 08-31-2008 at 09:37 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