Debugger exception notification error for reading txt files in DELPHI -
im getting error haven't seen before.
here's code:
procedure tfrmpatientviewer.formcreate(sender: tobject); var myarray : array [1..100] of string; icount : integer; patients : textfile; begin assignfile(patients, 'patients.txt'); if fileexists('patients.txt') <> true begin showmessage('patients.txt not exist, program shutting down'); application.terminate; end; icount := 1; while not eof(patients) // <-- here's error begin readln (patients, myarray[icount]); redtout.lines.add(myarray[icount]); inc(icount); end; end;
the error says: project phase3p.exe has raised exception class elnouterror message 'i/o error 104'. proccess stopped
.
why doing , can make work properly? have searched around can find stuff on different i/o errors, not 104
one.
okay, found error after proof reading 4th time xd
i didn't put reset(patients)
after assigning text file.
Comments
Post a Comment