Click here to Skip to main content
15,913,262 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Syntax Pin
John R. Shaw31-May-07 9:02
John R. Shaw31-May-07 9:02 
GeneralRe: Syntax Pin
Matthew Faithfull31-May-07 3:55
Matthew Faithfull31-May-07 3:55 
Questionpls help me-msi file Pin
saisp31-May-07 2:27
saisp31-May-07 2:27 
AnswerRe: pls help me-msi file Pin
Hamid_RT31-May-07 2:44
Hamid_RT31-May-07 2:44 
QuestionI can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 2:26
ldsdbomber31-May-07 2:26 
AnswerRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 2:28
ldsdbomber31-May-07 2:28 
AnswerRe: I can't believe I am having so many problems with file access Pin
toxcct31-May-07 2:40
toxcct31-May-07 2:40 
AnswerRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 4:02
David Crow31-May-07 4:02 
ldsdbomber wrote:
I've only looked in the help and checked out "fstream"...


But you did not look in ios.h, which is included by fstream.h. With the newer header files, the noreplace and nocreate flags were removed.

ldsdbomber wrote:
- check if a file (specified by a CString object) exists.


How about _access(str, 0)? Or just try to open the file for reading. If that fails, the file likely does not exist.

ldsdbomber wrote:
- if it does, I want to nip to the end of the file and start appending data rows


Have you tried ios::app?




"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: I can't believe I am having so many problems with file access Pin
ldsdbomber31-May-07 6:01
ldsdbomber31-May-07 6:01 
GeneralRe: I can't believe I am having so many problems with file access Pin
David Crow31-May-07 6:10
David Crow31-May-07 6:10 
Questionpls help me-msi file Pin
saisp31-May-07 2:25
saisp31-May-07 2:25 
AnswerRe: pls help me-msi file Pin
toxcct31-May-07 2:37
toxcct31-May-07 2:37 
AnswerRe: pls help me-msi file Pin
Hamid_RT31-May-07 2:45
Hamid_RT31-May-07 2:45 
JokeRe: IDE Pin
CPallini31-May-07 2:10
mveCPallini31-May-07 2:10 
GeneralRe: IDE Pin
Hamid_RT31-May-07 2:47
Hamid_RT31-May-07 2:47 
GeneralRe: IDE Pin
Rajesh R Subramanian31-May-07 3:10
professionalRajesh R Subramanian31-May-07 3:10 
GeneralRe: IDE Pin
toxcct31-May-07 3:23
toxcct31-May-07 3:23 
QuestionIDE Pin
tom groezer31-May-07 2:07
tom groezer31-May-07 2:07 
AnswerRe: IDE Pin
toxcct31-May-07 2:14
toxcct31-May-07 2:14 
GeneralRe: IDE Pin
tom groezer31-May-07 2:31
tom groezer31-May-07 2:31 
GeneralRe: IDE Pin
toxcct31-May-07 2:34
toxcct31-May-07 2:34 
AnswerRe: IDE Pin
jhwurmbach31-May-07 2:42
jhwurmbach31-May-07 2:42 
QuestionTrackPopupMenu Pin
tom groezer31-May-07 1:45
tom groezer31-May-07 1:45 
AnswerRe: TrackPopupMenu Pin
Ravi Bhavnani31-May-07 2:13
professionalRavi Bhavnani31-May-07 2:13 
AnswerRe: TrackPopupMenu Pin
sps-itsec4631-May-07 2:18
sps-itsec4631-May-07 2:18 

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.