Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>fwriteline() - write one line of text to a file</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     fwriteline() - write one line of text to a file
  Usage:    <logical> = fwriteline(<handle>,<string>)
  Params:   integer <handle> from a previous fopen() or fcreate()
            string <string> - the string to write to <handle>
  Returns:  logical .T. if line written successfully, .F. if error

 ---------------------------------- Example ---------------------------------

                 declare MYarray[100]
                 ** fill myarray **
                 handle = fcreate("test.txt")
                 for x = 1 to len(MYarray)
                      fwriteline(handle,MYarray[x])
                 next
                 fclose(handle)

  Note:     A newline character is automatically appended to the
            end of the string. The _newline() function has no
            effect on fwriteline().


See Also: freadline() stdout() stdin() ferror() _newline()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson