FPuts

void FPuts(number handle, string buffer)

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

Example
var hFile, buffer[41])

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

// 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)
    FClose(hFile)

    Print(buffer)
)

See Also: FOpen, FClose, FGets