Hi
Im using Kix32 4.2. Im trying to read from one test file and retrieve the last 32 characters from each line until the end of the list and place it the results into another txt file. The list file is well over 50000 lines. The kix script keeps on ending before it gets even a 10th of the way down the list. Is there a maximum length for a file it can read or write to.
Heres the script
Break ON
CLS
:start
$=Open(1,"c:\mike\list.txt")
:read
Do $Line=ReadLine(1)
? "$line"
$x = Rtrim($line)
$y = Len("$x")
$machine = $x
If $x = "end"
Goto end
Else
$q=Right ("$x",32)
Shell 'cmd /c echo $q >> c:\mike\report.txt'
EndIf
:startagain
Until InStr($Line,"end")
:end
Shell 'cmd /c echo end of list'
thanks in advance
Tony
Edited by tonyh (2005-01-31 04:29 PM)
_________________________
Tonyh