Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Closes a file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
BinaryFile 7.3 Yes Yes Yes Yes Yes
MBS( "BinaryFile.Close"; BinaryFileRef )   More


Parameter Description Example value
BinaryFileRef The reference number for the open file. $FH


Returns OK or error.


Closes a file.
Releases memory used for the file.


Create a file and write Hello:

Set Variable [ $fh ; Value: MBS( "BinaryFile.Create"; "/Users/cs/Desktop/test.txt" ) ]
Set Variable [ $r ; Value: MBS( "BinaryFile.WriteText"; $fh; "Hello World") ]
Set Variable [ $r ; Value: MBS( "BinaryFile.Close"; $fh) ]

See also

Blog Entries

Created 12nd June 2017, last changed 12nd June 2017

BinaryFile.Append   -   BinaryFile.Create

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins