potřebuju načíst soubor input.txt do proměnné text (string).
jak to mám udělat?
toto je můj dosavadní počin:
Kód: Vybrat vše
procedure nacteni_ze_souboru (var text:string);
var input: file of char;
znak: char;
delka_zdroje, counter: integer;
begin
assign (input, 'c:\input.txt');
reset(input);
delka_zdroje:=filesize(input);
for counter:=1 to delka_zdroje do
begin
read (input,text[counter]);
end;
close(input);
end;

