Skip to content
⌘ NSIS Forum Archive

FileCreate

4 posts

Boyito#

FileCreate

Hi,
Like FileOPen, FileClose, FileRead, etc i need to create a file, how can I do that??

TIA
Red Wine#
If you just want to create a new text file e.g.
FileOpen $0 '$EXEDIR\file_name.txt' w
FileWrite $0 'a_line_of_text$\r$\n'
FileWrite $0 'more_line_of_text$\r$\n'
FileClose $0
ExecShell open '$EXEDIR\file_name.txt'

Also check this thread,
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Red Wine#
you're welcome!
Also by the same way you're able to create formated files like .ini .cfg .inf etc 🙂