Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.27;
Скачать: CL | DM;

Вниз

Reset (file,mode)   Найти похожие ветки 

 
Yuri Btr ©   (2002-06-14 12:48) [0]

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


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

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


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

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.


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

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


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

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

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


 
Yuri Btr ©   (2002-06-14 12:58) [5]

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


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

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

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


 
Sasha9 ©   (2002-06-14 13:02) [7]

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



Страницы: 1 вся ветка

Текущий архив: 2002.06.27;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.015 c
1-88898
id_privin
2002-06-14 14:56
2002.06.27
Ассоциированные массивы


3-88767
sergey32
2002-06-05 10:10
2002.06.27
Кто-нибудь знает как подконнектится к базе UNIFY


1-88939
Sniffer
2002-06-15 14:13
2002.06.27
Как загрузить картинку из файла ресурсов


14-89043
Kostia
2002-05-28 10:54
2002.06.27
Помогите, плиз, правильно указать путь к Program Files


14-89017
OOPS!!
2002-05-23 15:25
2002.06.27
Photoshop, Winamp, CorelDraw, 3DStudio, Half-Life, Quake, ACDSEE.