| |
|
|
Georg Hovenbitzer | Hello together,
a short question to that Print #1 commands. can I it somehow bypass, that it first into File writes if his Buffer fully is ? If one the following example executing and itself to each step The File ansieht recognize one, that to the third Print #1 256 byte in the File disembark and to the Close The restlichen. fractures to the Program ex or crashes it ex, missing the remainder. CompileMarkSeparationCls
Assign #1,"C:\Test.txt"
Rewrite #1
Print "Erstellen einer Datei."
WaitInput
Print #1,"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
Print "Zeile01 = 100 Zeichen geschrieben"
WaitInput
Print #1,"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
Print "Zeile02 = 100 Zeichen geschrieben"
WaitInput
Print #1,"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
Print "Zeile03 = 100 Zeichen geschrieben"
WaitInput
Close #1
Print "Datei geschlossen."
End
|
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 05/17/06 ▲ |
|
|
|
|
| Schließe still simply the File by Close around the write To force, and slopes new Lines with Append on. the would yet not even one ploy separate simply and tidy. |
|
|
| |
|
|
|
Georg Hovenbitzer | Hi iF,
this would naturally a Possibility. File create, close, with Append something add and again close. so alights lasses directly in the File. I thought it would a switch give the roughly the same effect would. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 05/17/06 ▲ |
|
|
|
|
| I Have strain time to
[...]
gegoogelt but on attempt nothing found. |
|
|
| |
|
|
|
Michael Wodrich | ???[quote:6e59e82482]The FlushFileBuffers function clears the buffers for the specified file and causes all buffered data to be written to the file.
BOOL FlushFileBuffers(
HANDLE hFile // open lever to file whose buffers are to be flushed ); [/quote:6e59e82482] from Win32.hlp
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 05/18/06 ▲ |
|
|
|