Thema: Delphi LoadFromFile

Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.762 Beiträge
 
Delphi 10.4 Sydney
 
#13

Re: LoadFromFile

  Alt 11. Sep 2009, 14:25
Zitat von Schnittcher:
Hallo,

was heißt denn:

Seek(MyFile,0); ???

Es läd die Datei ja nicht in die Variable.

Gruß,
Schnittcher
Der einfachste Weg das herauszufinden ist ,mit der Maus
auf die Routine zu gehen einmal klicken und dann F1 drücken.

Aus der Hilfe:
Zitat:
Unit
System

Syntax


[Delphi] procedure Seek(var F: file; N: Integer);


Description
Use Seek in Delphi code to move to a specified position in open typed or untyped files. The current file position of F moves to component number N, where the number of the first component of a file is 0.

In the above syntax, F is a typed or untyped file variable. The file specified by F must be open. N is an expression of type Longint

To expand a file, seek one component beyond the last component; that is, the statement Seek(F, FileSize(F)) moves the current file position to the end of the file.
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat