on Error Resume next? - 05/05/05 12:55 AM
hey guys, i need help on recovering from an error. See this code:
i intentionally put a 999-char line in t.txt. i need for the alias to keep going with the loop after printing an error msg
thnx in advance
Code:
/test { var %m = $lines(t.txt),%i = 1 fopen t t.txt while (%i <= %m) { var %l = $fread(t) echo -s %i = %l :nxt inc %i } fclose t return :error ; i assume that d only error would be a 'line too long' echo -s line too long: %i goto nxt }
i intentionally put a 999-char line in t.txt. i need for the alias to keep going with the loop after printing an error msg
thnx in advance