Вниз
Скачать: CL | DM;

Текстовик   Найти похожие ветки 

 
kay   (2002-01-30 11:56) [0]

Народ! Помогите! Как из текстового файла, закинуть определенную строку в переменную, типа стринг? Функция, что-то типа (numeric), что ли.


 
pasha_golub ©   (2002-01-30 12:01) [1]

var
f:textfile;
s:string;
begin
AssignFile(f,FileName);
Reset(f);
while not eof(f) do
Readln(f,s);
end;


 
Dimka Maslov ©   (2002-01-30 12:01) [2]

function GetStringFromFile(FileName: string; LineNumber: Integer): string;
var
List: TStringList;
begin
List:=TStringList.Create;
try
List.LoadFromFile(FileName);
Result:=List[LineNumber-1];
finally
List.Free;
end;
end;



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

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.006 c
3-42649
PONTIY
2002-01-19 12:19
2002.02.14
Вставка NULL в поле TTable.


1-42764
VCL
2002-01-26 20:10
2002.02.14
Connect с WORD!!


1-42758
ТеньЛуны
2002-01-29 23:43
2002.02.14
Need help!!!


3-42665
Eduard
2002-01-21 09:47
2002.02.14
InsertRecord и DateTime


3-42707
Diver
2002-01-18 12:37
2002.02.14
блокировка таблиц Paradox




   Наверх