Programming Reference Manual
 
Syntax
 
FCreate filename$
 
Description
Creates a new empty file, named filename$. The length of the new file is zero bytes.
 
You need this statement if you want to open a new file with FOpen.
 
 
Parameter
Description
filename$
The name of the new file to be created.
See Also
Example
 
Sub Main
Dim File$, Hnd%
'write contents to a new file
File$ “C:\TEMPFILE.TMP”
FCreate File$
Hnd% = FOpen(File$,1,0)'Write-only, not shared
FPut Hnd%, “Hello World!” & vbCrLf
FClose Hnd%
'test the file
Hnd% = FOpen(File$,0,0)'Read-only, not shared
FSeek Hnd%, 0
While Not FEof(Hnd%)
Print FLInput(Hnd%)
Wend
FClose Hnd%
End Sub