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

Creating a text file
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Creating a text file
For a beginner take a look at FileSystemObject and the function CreateTextFile.

quote:
Originally posted by roflmao456
example:
JScript code:
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.OpenTextFile("c:\test.txt" /*filename*/,2 /*mode;1=reading;2=writing;8=append*/, true /*create if non-existant*/);


It should be:
code:
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.OpenTextFile("c:\\test.txt" /*filename*/,2 /*mode;1=reading;2=writing;8=append*/, true /*create if non-existant*/);

This post was edited on 12-04-2008 at 09:31 PM by matty.
12-04-2008 09:16 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Creating a text file - by hunter1577 on 12-04-2008 at 09:01 PM
RE: Creating a text file - by roflmao456 on 12-04-2008 at 09:11 PM
RE: Creating a text file - by matty on 12-04-2008 at 09:16 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