English
Forum

Print #1 trouble

 

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.
CompileMarkSeparation
Cls
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.
 
05/17/06  
 




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.
 
05/17/06  
 




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  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.548 Views

Untitledvor 0 min.
Member 361000512/01/22
rquindt02/02/17
H.Brill04/13/16
GDL03/01/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie