Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

TextFile.WriteFromString help

$
0
0
Hi all,

Been using setup factory 9 for a while now but i have been trying some new stuff and got a bit stuck.

I'm trying to write to a text file which works but i also need to write a variable to the file as well but that part fails, here's the code i'm using
Code:

TextFile.WriteFromString("%AppFolder%\\test.cfg", "Title=product\r\nFolder=%AppFolder%\r\n", true);
%AppFolder% = C:\testfolder
The file is created where i want but contains
Code:

Title=product
Folder=%AppFolder%

instead of
Code:

Title=product
Folder=C:\testfolder

Any help appreciated

Viewing all articles
Browse latest Browse all 2105

Trending Articles