What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » OpenTextFile & DeleteFile

OpenTextFile & DeleteFile
Author: Message:
personne3000
New Member
*


Posts: 2
Joined: Jan 2008
O.P. OpenTextFile & DeleteFile
Well... What would be said.. Hi?

I'm French and not so good at speaking English. So I won't spend my time writing a long message...

Why do these two codes give different results?


code:
fso.DeleteFile(chemin_fichier_calendrier);
fichier2 = fso.CreateTextFile(chemin_fichier_calendrier, 2, false);


code:
fichier2 = fso.CreateTextFile(chemin_fichier_calendrier, 2, true);

The file at "chemin_fichier_calendrier" always exists when these instructions are read.
Isn't the "true" parameter at the end of the "CreateTextFile" command supposed to overwrite the existing file?

The first possibility is the one that works for me. The second one gives... strange results, the output file isn't as I expect it to be (unexpected spaces and characters that I can't find on my keyboard...).

Thx :D
01-05-2008 05:00 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
OpenTextFile & DeleteFile - by personne3000 on 01-05-2008 at 05:00 PM
RE: OpenTextFile & DeleteFile - by Matti on 01-06-2008 at 09:39 AM
RE: OpenTextFile & DeleteFile - by personne3000 on 01-06-2008 at 11:33 AM


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