Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Reset (file,mode) [D6, WinXP]


Yuri Btr ©   (2002-06-14 12:48:00) 

Подкиньте пожалуйста параметры открытия файла:
например
Reset(F,1) - открытие файла read-only?


Игорь Шевченко   (2002-06-14 13:02:00) [1]

Reset - один режим,
Rewrite - другой
Append - третий
Truncate - четвертый.

Плохо лазил. Вверху в Help есть два зеленых слова see also,
що у переводе по нашему означает см. также


Sasha9   (2002-06-14 13:02:00) [2]

а откуда по твоему это?
Виктор Щербаков © (14.06.02 12:51)


Yuri Btr   (2002-06-14 12:58:00) [3]

Послушайте, я облазил весь хелп и обе книги по Delphi, но конкретно там ничего не сказано про режим открытия файла.


Игорь Шевченко   (2002-06-14 12:55:00) [4]

Виктор Щербаков © (14.06.02 12:52)

На меню Help надо глаза поднимать...А кнопка под рукой


Виктор Щербаков   (2002-06-14 12:52:00) [5]

Игорь Шевченко © (14.06.02 12:51)
Но главное меню-то (с пунктом help) точно осталось :^)


Игорь Шевченко   (2002-06-14 12:51:00) [6]

Что, кнопка F1 из клавиатуры безжалостно выковырена ? :-)


Виктор Щербаков   (2002-06-14 12:51:00) [7]

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

Description

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.

F is a variable of any file type associated with an external file using AssignFile. RecSize is an optional expression, 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.

If F is assigned an empty name, such as AssignFile(F, ""), then after the call to Reset, F refers to the standard input file.

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.

Note: {$I+} handles run-time errors using exceptions. When using {$I-}, use IOResult to check for I/O errors.


Наверх

Титульная страница Поиск, карта сайта Написать письмо