![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Что делает процедура ProcessFile [D5, D6, Win95/98]
Dimaiv © (2002-04-09 20:39:00)в Хэлпе почему-то нет.
Anatoly Podgoretsky (2002-04-09 21:21:00) [1]Ее еще нет, напишешь, сделаешь хелп, подключишь его и только тогда сможешь ее находить
MBo (2002-04-09 21:14:00) [2];)
это самому ее писать надо
Dimaiv (2002-04-09 21:07:00) [3]Вот пример из хелпа (пример для процедуры GetMem)
The following example opens a file named "test.txt" and reads the entire file into a dynamically allocated buffer. The buffer and the size of the file are then passed to a routine that processes the text, and finally the dynamically allocated buffer is freed and the file is closed.
var
F: file;
Size: Integer;
Buffer: PChar;
begin
AssignFile(F, "test.txt");
Reset(F, 1);
try
Size := FileSize(F);
GetMem(Buffer, Size);
try
BlockRead(F, Buffer^, Size);
ProcessFile(Buffer, Size);
finally
FreeMem(Buffer);
end;
finally
CloseFile(F);
end;
end;
Anatoly Podgoretsky (2002-04-09 20:49:00) [4]Нет такой