Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.06.27;
Скачать: [xml.tar.bz2];

Вниз

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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.006 c
1-88871
j_onion
2002-06-14 10:19
2002.06.27
Создание форм


1-88940
Tzota
2002-06-15 17:40
2002.06.27
Передача хмм... ну не фокуса, но что-то типа того.


14-88990
Lord Warlock
2002-05-24 15:03
2002.06.27
Интерфейс и девушка!


1-88806
Voldemar
2002-06-16 15:54
2002.06.27
Фиксирующаяся кнопка


14-89038
Zershchikov
2002-05-27 01:58
2002.06.27
TreeView





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский