[SOLVED] Can't take line from list when using a relative path

BFlame6

Client
Регистрация
05.11.2011
Сообщения
13
Благодарностей
0
Баллы
0
(Using Zennoposter MP version 4.2.5.0)

I have a list that I'm trying to take the first line from and its using relative paths to the file ({-Project.Directory-}list.txt) and have both "load from a file" and "save change list to file" checked.

I simply added a list processing action to take the first line and "delete line after take," but it gives me an error of "Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index"

It works properly only when I change the relative path to the full, absolute, path to the list file.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Is your file located directly in project folder?
 
  • Спасибо
Реакции: BFlame6

BFlame6

Client
Регистрация
05.11.2011
Сообщения
13
Благодарностей
0
Баллы
0
Ah, that was it Rostonix! Looks like it was just a user error on my part.
Forgot I had moved the file into a sub-folder :-)

Relative path is working properly now.


Thanks!
 

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