|
|
#1 |
|
Junior Member
Join Date: May 2006
Posts: 4
|
Write to text File
Apologies for this distraction. I ve searched the forum and read various tutorials but no clue.
I want to send some strings to a text file. if the file does not exist at the desired destination, then create it. some of the text should be tab or comma separated in order to be read by an application. e.g "My Name " + tab separation + " This is just a test" "My Address " + tab separation + " My address is not yet known" etc Any clue will be appreciated |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
FileOpen, FileWrite, and FileClose in chapter 4.9.5 File Instructions of the NSIS manual should do the trick quite nicely. To use a tab in your string, put $\t where you want it.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2006
Posts: 4
|
thanks for this information
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2006
Posts: 4
|
the tab symbol is not working pls. pls advise on usage
"Report_Directory $\t $R0/Report" where $RO is the directory variable Thnaks upfront |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
This test code:
yields this output in hello.txt:code: code: "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|