IPB

> Reset (procedure)
Чат
Форум
Загрузка...
 

Language:
Русский
English

 Reset (procedure)


Opens an existing file.

Declaration

 procedure Reset(var F [: File; Recsize: Word ] );

Target

Windows, Real, Protected

Remarks

F is a variable of any file type associated with an external file using Assign. RecSize is an optional expression of type Word, which 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 opens the existing external file with the name assigned to F. An error results if no existing external file of the given name exists. If F is already open, it is first closed and then reopened. The current file position is set to the beginning of the file.

If F is assigned an empty name, such as Assign(F, ''), then after the call to Reset, F refers to the standard input file (standard handle number 0).

If F is a text file, F becomes read-only. After a call to Reset, Eof(F) is True if the file is empty; otherwise, Eof(F) is False.

With {$I-}, IOResult returns 0 if the operation was successful; otherwise, it returns a nonzero error code.

See Also

Sample Code

 
 К началу страницы 
Тэги: Reset
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"