CloseFile

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

Declaration

procedure CloseFile(var f: file);

Description

Call CloseFile to close a file associated with the f parameter.

Example

AssignFile(OutputFile,NewFileName);

Rewrite(OutputFile);

AssignFile(InputFile,OldFileName);

Reset(InputFile);

Try

    While not EOF(InputFile) do

    Begin

        Readln(InputFile,Line);

        For I := 1 to Length(Line) Do

            Line[I] := UpperCase(Line[I]);

        Writeln(Outputfile, Line);

    End;

Finally

    CloseFile(InputFile);

    CloseFile(OutputFile);

End;

Close;

See also

Append

AssignFile

ChDir

MkDir

Read

ReadLn

RmDir

Write

Writeln functions.

Your Ad Here