FlyBoy Posted September 17, 2004 Posted September 17, 2004 what it really used for? i use it all the time,before closing a file when using streamXXXXX. but i really dont know what its doing...and why i have to use it. 10x in advance Quote
Administrators PlausiblyDamp Posted September 17, 2004 Administrators Posted September 17, 2004 The flush method simply forces any buffered data to be written out to the underlying file. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
FlyBoy Posted September 17, 2004 Author Posted September 17, 2004 The flush method simply forces any buffered data to be written out to the underlying file. i see...so before the "flush" nothing is written yet? until the flush that copies everything from the buffer to the file? 10x!!! Quote
TamuTamu Posted October 4, 2004 Posted October 4, 2004 Yes, additionally when the stream is closed flush is automatically called. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.