Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi I/O Error 6?!? (https://www.delphipraxis.net/62789-i-o-error-6-a.html)

wursthunter 9. Feb 2006 16:18


I/O Error 6?!?
 
Was sagt der Fehler aus??? Keine Ahnung wwo das Problem liegt...
Hier der Code

Delphi-Quellcode:
var
 i: Integer;
 s: String;
begin
 with frmFightman do
 begin
  AssignFile(menufile, FileName);
  Reset(menufile);

  Readln(menufile, menuitems);

  For i := 1 to menuitems do
  begin
   Readln(menuitems, s); //<-- da wird der fehler angezeigt!!!
    mxpos[i] := StrToInt(s);
   Readln(menuitems, s);
    mypos[i] := StrToInt(s);
   Readln(menuitems, s);
    mxsize[i]:= StrToInt(s);
   Readln(menuitems, s);
    mysize[i]:= StrToInt(s);
  end;
   
  CloseFile(menufile);
 end;
Und nu?

wursthunter 9. Feb 2006 16:25

Re: I/O Error 6?!?
 
autsch! menuitems is doch gar net die Textfile.... ahhh das tut weh!


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz