Loading ...
Sorry, an error occurred while loading the content.

AW: [libertybasic] File Access Question

Expand Messages
  • pendl2megabit
    Message 1 of 5 , May 2, 2006
    • 0 Attachment
      > Its not its all one big loop
      > [loop]
      > open "C:\data.txt" for append as #datafile
      > 'while lof(#comm)<4
      > ' scan
      > 'wend
      > t$ = input$(#comm, lof(#comm)) 'Get com port data
      > if t$ <> "" then print #datafile, t$; 'Display com port data
      > close #datafile
      > scan 'Check for input events
      > goto [loop]
      > I'm just trying to figure out if there is a way to flush the file
      > stream without closing the file.

      Sorry, but no flushing for files with LB native code.

      You can still use API functions to open the file, which will enable you to
      flush the buffer.

      Stefan Pendl

      Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
    Your message has been successfully submitted and would be delivered to recipients shortly.