Create Text File from an Variable

Triplex

Client
Регистрация
04.02.2011
Сообщения
34
Благодарностей
3
Баллы
8
Hello,
how can i create an Text File named by an Variable? I scraped an Title from an Text, put it into an Variable and now i want to create an .txt File Named by the Variable in an specified Folder. How to Do?
Thanks
:D
 

Lannister

Client
Регистрация
28.08.2011
Сообщения
19
Благодарностей
2
Баллы
0
hi,

i have the same problem. Anyone has the solution ?

thanks
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
In path to save a file simply put something like {-Variable.page-}.txt
It's like the old style with macroses.
 
Последнее редактирование:

Lannister

Client
Регистрация
28.08.2011
Сообщения
19
Благодарностей
2
Баллы
0
it create a text file with no name :(

i have upload my example (I want the number generated is the file name)

in ZN3 i just have to do that : {-File.AppendString-|-\Results\{-Random.Int-|-1-|-999-}.txt-|-test-|-true-} ^_^
 

Вложения

  • 13,6 КБ Просмотры: 373

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
If the file doesnt exist at the moment when template starts you have to use this action for writing data to txt file:

 
  • Спасибо
Реакции: Lannister

Lannister

Client
Регистрация
28.08.2011
Сообщения
19
Благодарностей
2
Баллы
0
it works, Thank you :-)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)