void FPuts(number handle, string buffer)

Writes the string contained in buffer to the file pointed to by handle.

var hFile, buffer[41])

// Open the file and write to it
(if( <> NULL (= hFile FOpen("somefile.txt" fCREATE)) )
    FPuts(hFile "Hello World!")

// Open the file, read it's first string, and print it to the screen
(if( <> NULL (= hFile FOpen("somefile.txt" fOPENFAIL)) )
    FGets(buffer 40 hFile)


See Also: FOpen, FClose, FGets