Project

General

Profile

Help with $read reading a file in a subfolder

Added by mario salasar 19 days ago

alias sinn {
var %file = $insert(files\.txt, $1 , 6)
var %lines = $lines(%file)
var %line 0

echo -a %line
while (%line < %lines) {
inc %line
echo -a $read(%file, %line)  <--line 19
pause 1
}
}

I'm having problems running this script "parameters not found in line 19".
Calling it like this "/sinn one".
%file = files\one.txt for some reason $read doesn't like like it.
Can anyone help?


Replies (1)

RE: Help with $read reading a file in a subfolder - Added by Per Amundsen 19 days ago

Where is the $insert() identifier? Have you tried to /echo what the %file and %line variables looks like?

    (1-1/1)