Показать сообщение отдельно
  #5  
Старый 16.12.2012, 14:34
Аватар для Bargest
Bargest Bargest вне форума
Профессионал
 
Регистрация: 19.10.2010
Адрес: Москва
Сообщения: 2,390
Версия Delphi: XE3/VS12/FASM
Репутация: 14665
По умолчанию

Цитата:
Сообщение от Embarcadero
procedure Reset(var F: File; [ RecSize: Integer]); overload;
...
F is a variable of any file type associated with an external file using AssignFile. RecSize is an optional expression that can be specified only if F is an untyped file. If F is an untyped file, RecSize specifies the record size to be used in data transfers. If RecSize is omitted, a default record size of 128 bytes is assumed.
Отсюда следует, что лучше использовать
Код:
Reset(F, 1);
+ файлы нужно закрывать.
Но проще использовать TFileStream, как говорил MAD.
__________________
jmp $ ; Happy End!
The Cake Is A Lie.
Ответить с цитированием