Programming Reference Manual
 
Syntax
 
FPut handle%, source$
 
Description
Writes source$ to the file, opened with FOpen under handle%, at the current position in the file. To changes the filepointer before writing data, use the FSeek statement. 
 
Parameter
Description
handle%
A handle to the file, previously opened with the FOpen instruction.
source$
A string that needs to be saved. May also be binary data, since no unicode translations will occur.
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%)
Debug.Print FLInput(Hnd%)
Wend
FClose Hnd%
End Sub