Good end

Jor1s

Client
Регистрация
25.06.2012
Сообщения
216
Благодарностей
3
Баллы
0
Hello

In the begining of my templates, i'am taking line (Login and pass) and delete it after taking, and at the end of my template i add those deleted line to a new tempory TXT file.

But the fact is, if my template don't work until the end, the first TXT will have line removed, while the 2nd TXT w'ont add line, so, 1 line lost.

And then another question is coming, same problem with spinned text. I explain :

I'am taking TXT spinned TXT from a folder (Title and Body) and delete it after taking (to avoid duplicate content). If the template crash after taking TXT i will lost 1 spinned text, its there any solution ?

Thanks for help.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Bad end is a solution.

Add actions for saving data to bad end.
If project fails, these actions will execute
 
Последнее редактирование:
  • Спасибо
Реакции: Jor1s

Jor1s

Client
Регистрация
25.06.2012
Сообщения
216
Благодарностей
3
Баллы
0
Ok thanks, i wil ltake a look how bad end works.
 

Jor1s

Client
Регистрация
25.06.2012
Сообщения
216
Благодарностей
3
Баллы
0
Could you explain how does it works ?

thx.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
 
  • Спасибо
Реакции: BFlame6 и Jor1s

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
you need to connect bad end with let say create text, which will basicly put line back in file...

so how does it works???

as you see bad end is not connected with rest of the stuff, just with report you added or whatever. So in case you get error anywhere in template, it will jup to bad end, and in your case put line back in file.



edit: ok, rostonix was faster :-)
 
  • Спасибо
Реакции: BFlame6 и Jor1s

Jor1s

Client
Регистрация
25.06.2012
Сообщения
216
Благодарностей
3
Баллы
0
Oh ok , so we just need to put it anywhere and not connected to my tempalte, many thx, thats easy :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113

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