dobry den mam dotaz ohledne pascalu: pokud budu ukladat stringy do textoveho [f : text] a do binarniho [f : file of string] souboru tak do textoveho se mi zapisou pouze "zaplnene" znaky ze stringu a do binarniho i vcetne prazdnych casti toho stringu! <priklad> program pokus; var f1:text; f2:file of string; s1,s2:string; begin s1:='ab'; s2:='dcba'; assign(f1,'f1.txt'); assign(f2,'f2.str'); rewrite(f1); rewrite(f2); write(f1,s1);write(f1,s2); write(f2,s1);write(f2,s2); close(f1); close(f2); end. </priklad> tedy textovy soubor ma velikost 6b a binarni 512b[tedy 2x256] <otazka> lze nejak ukladat do binarniho souboru aniz by se ukladal cely string, ale pouze jeho zaplnena cast? </otazka> diky martin
This archive was generated by hypermail 2.1.2 : 08. 08. 2002, 21:22 CEST