I am using PowerBasic 2.1f
How do I flush the file buffer of an open file in order to prevent data loss should the user encounter a lock-up or power loss?
IOW...
Open "A", #1, "VITAL.TXT"
Print #1, "We cannot afford to lose this data"
' The power goes out at this point and we end up losing the previous line of data
Close #1
How do I flush the file buffer of an open file in order to prevent data loss should the user encounter a lock-up or power loss?
IOW...
Open "A", #1, "VITAL.TXT"
Print #1, "We cannot afford to lose this data"
' The power goes out at this point and we end up losing the previous line of data
Close #1
Comment