delete all lines deleting file?

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18
i bind my list to a file, then i scrape some texts, then i run delete lines(remove all elements) for that list. and it deletes the file. then itry scraping more data and it doesn't output it to the file. how would I set it so it leaves a empty file and continues to output scraped data?
 
Последнее редактирование:

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 854
Баллы
113
Try checking Save changes to file list instead of Leave empty file option in list settings. Thus file will be empty after you delete all lines, but if you add new lines, they will be added to file as well.
List settings.png
 

bill

Client
Регистрация
05.07.2014
Сообщения
355
Благодарностей
9
Баллы
18

rostonix

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

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 854
Баллы
113
but i am creating a txt file and binding list to it, so should i check leave empty file and not set file path or...?
That's just sample screen. I advised to uncheck "Leave empty file" and check "Save changes to file". And the path to your txt file should be set of course.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
leave empty file should be checked + Save changes to file should be checked
Path should be empty
within project use List processing - Bind to file action
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 854
Баллы
113

rostonix

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

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