File.Close |
Top Previous Next |
Syntax function File.Close(var F: pointer): boolean
Alternative Names
Description Use this function to close and destroy the in memory file-stream object, the variable that holds the pointer is set to NIL.
Returns TRUE if the object is destroyed, FALSE otherwise.
See also
Example execute udsblock as begin /* open text file with UTF8 encoding preamble */ fs = File.Open('c:\data\utf8text.txt', __fmOpenReadWrite + __fmShareDenyWrite); try /* read a single line of text */ valueout = File.ReadLn(fs); finally File.Close(fs); end end |