Old 16th October 2005, 15:50   #1
cv105
Junior Member
 
Join Date: Oct 2005
Posts: 1
Can't create file

I'm trying to create a file using:-
PHP Code:
FileOpen $0 xyz.out w
FileWrite 
$"text"
FileClose $
but the file is not created or overwritten.

What am I doing wrong here?
cv105 is offline   Reply With Quote
Old 16th October 2005, 15:59   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use a full path.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 19th October 2005, 16:02   #3
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
Or
code:
SetOutPath $EXEDIR
FileOpen $0 xyz.out w
FileWrite $0 "text"
FileClose $0

Instructor is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump