TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEVEN LEI
from: VADIM RYZHANKOV
date: 1997-11-06 11:43:00
subject: Turbo C

Hello Steven.
27 Oct 97 18:42, Steven Lei wrote to Vadim Ryzhankov:
 SL> Oh, one thing...  what command would you use to "close" a ASCII text
                                                      ^^^^^ How do you open a 
file? There are many methods for this. For example,
FILE *f=fopen ("My.txt", "w");
(Skip...)
fclose (f);
int handle=open ("My.txt", O_TEXT | O_WRONLY);
(Skip...)
close (handle);
ofstream my_stream ("My.txt");
(Skip...)
my_stream.close ();
 SL> file after you're finished writing to it?
If file close with all close-functions (close, fclose, fcloseall, 
ofstream::close) then all buffers would be throw down.
Did I understand your question?
Vadim
---
---------------
* Origin: ----> Default GoldED Origin <---- (2:464/34.52)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.