Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help! Tcp/ip for Dos Pin
Ravi Bhavnani20-Dec-01 8:18
professionalRavi Bhavnani20-Dec-01 8:18 
GeneralThese code make me angry... Pin
19-Dec-01 21:39
suss19-Dec-01 21:39 
GeneralThese code make me angry... Pin
19-Dec-01 21:25
suss19-Dec-01 21:25 
GeneralRe: These code make me angry... Pin
20-Dec-01 14:28
suss20-Dec-01 14:28 
QuestionHow to draw snow flowers on the screen? Pin
haiyan_qi19-Dec-01 17:21
haiyan_qi19-Dec-01 17:21 
AnswerRe: How to draw snow flowers on the screen? Pin
Rick York19-Dec-01 18:14
mveRick York19-Dec-01 18:14 
Questionwhere can I get the fun of decode for quoted-printable? Pin
cococut19-Dec-01 16:08
cococut19-Dec-01 16:08 
General*Deleting* Files Using C++ Pin
valikac19-Dec-01 15:14
valikac19-Dec-01 15:14 
Hi.
I have a question about deleting a few. Here is a scenario. The program first asks the user to enter the name of a file to take to.

ostream outFile;
outFile.open(userchoice, ios::out);

With ofstream, I found that it will create the file if it cannot find it. I tried implementing "nocreate," but VC++ 6 gave me an error that there is not such function "ios::nocreate."

Anyways, the program would create the file if it cannot find it and the file would be empty or 0 byte size. Afterward, the program calculates specific data (not worth mentioning) and outputs data to the outpuf *if applicatable*. So sometimes the program writes nothing and I would a 0 byte file under the name that the user originally entered.

I would like to know if there is a way to delete a file. So in the case above, there would be a line of code to delete the file if applicable.

Thanks,
Kuphryn


GeneralRe: *Deleting* Files Using C++ Pin
Tim Smith19-Dec-01 15:34
Tim Smith19-Dec-01 15:34 
GeneralRe: *Deleting* Files Using C++ Pin
valikac19-Dec-01 15:59
valikac19-Dec-01 15:59 
GeneralRe: *Deleting* Files Using C++ Pin
Rick York19-Dec-01 18:11
mveRick York19-Dec-01 18:11 
GeneralRe: *Deleting* Files Using C++ Pin
valikac20-Dec-01 7:45
valikac20-Dec-01 7:45 
GeneralRe: *Deleting* Files Using C++ Pin
Ravi Bhavnani20-Dec-01 8:02
professionalRavi Bhavnani20-Dec-01 8:02 
GeneralInteresting Font problem Pin
Wolfram Steinke19-Dec-01 13:24
Wolfram Steinke19-Dec-01 13:24 
GeneralRe: Interesting Font problem Pin
Bernhard20-Dec-01 1:52
Bernhard20-Dec-01 1:52 
GeneralRe: Interesting Font problem Pin
Wolfram Steinke20-Dec-01 7:11
Wolfram Steinke20-Dec-01 7:11 
GeneralDisassociate MFC document with application Pin
19-Dec-01 6:25
suss19-Dec-01 6:25 
GeneralRe: Disassociate MFC document with application Pin
Joaquín M López Muñoz19-Dec-01 7:08
Joaquín M López Muñoz19-Dec-01 7:08 
GeneralRe: Disassociate MFC document with application Pin
19-Dec-01 11:07
suss19-Dec-01 11:07 
Generalfstream problem Pin
James Bird19-Dec-01 6:24
James Bird19-Dec-01 6:24 
GeneralRe: fstream problem Pin
Joaquín M López Muñoz19-Dec-01 6:35
Joaquín M López Muñoz19-Dec-01 6:35 
GeneralRe: fstream problem Pin
James Bird19-Dec-01 7:47
James Bird19-Dec-01 7:47 
GeneralMSHTML Gurus - Question about get_onload() / put_onload() Pin
Pierre Heler-Caruel19-Dec-01 6:09
Pierre Heler-Caruel19-Dec-01 6:09 
QuestionDateTime Picker control check box? Pin
Giles19-Dec-01 5:38
Giles19-Dec-01 5:38 
AnswerRe: DateTime Picker control check box? Pin
Alvaro Mendez19-Dec-01 5:41
Alvaro Mendez19-Dec-01 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.