mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-16 07:22:37 +02:00
16 lines
331 B
ObjectPascal
16 lines
331 B
ObjectPascal
Program Example9;
|
|
|
|
{ Program to demonstrate the Close function. }
|
|
|
|
Var F : text;
|
|
|
|
begin
|
|
Assign (f,'Test.txt');
|
|
ReWrite (F);
|
|
Writeln (F,'Some text written to Test.txt');
|
|
close (f); { Flushes contents of buffer to disk,
|
|
closes the file. Omitting this may
|
|
cause data NOT to be written to disk.}
|
|
end.
|
|
|