Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SQL Problem Pin
_anil_6-Feb-07 3:37
_anil_6-Feb-07 3:37 
QuestionRe: SQL Problem Pin
David Crow6-Feb-07 3:57
David Crow6-Feb-07 3:57 
AnswerRe: SQL Problem Pin
_anil_6-Feb-07 4:37
_anil_6-Feb-07 4:37 
Questionfile manipulation in c Pin
deeps_cute6-Feb-07 2:23
deeps_cute6-Feb-07 2:23 
QuestionRe: file manipulation in c Pin
prasad_som6-Feb-07 2:35
prasad_som6-Feb-07 2:35 
AnswerRe: file manipulation in c Pin
deeps_cute6-Feb-07 3:08
deeps_cute6-Feb-07 3:08 
GeneralRe: file manipulation in c Pin
kakan6-Feb-07 3:22
professionalkakan6-Feb-07 3:22 
GeneralRe: file manipulation in c Pin
Roger Stoltz6-Feb-07 3:28
Roger Stoltz6-Feb-07 3:28 
There is no such thing as "opening a file in a specific format".
If there was, then every file format would have a corresponding C-function for opening it.

It's up to you to know the format of the file you're opening. The only thing you can choose from is whether carriage return and line feed combinations should be translated to a single line feed or not. That's the difference between calling fopen with or without the "t" switch in the mode string.

When you've opened the file with fopen you can use fread for reading the contents of the file and fclose for closing it.

Consider using file operations from MFC framework or STL library instead.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: file manipulation in c Pin
prasad_som6-Feb-07 3:36
prasad_som6-Feb-07 3:36 
QuestionTimer/ Multitasking?? Pin
weehau6-Feb-07 2:14
weehau6-Feb-07 2:14 
QuestionRe: Timer/ Multitasking?? Pin
Roger Stoltz6-Feb-07 2:45
Roger Stoltz6-Feb-07 2:45 
AnswerRe: Timer/ Multitasking?? [modified] Pin
weehau6-Feb-07 4:37
weehau6-Feb-07 4:37 
GeneralRe: Timer/ Multitasking?? Pin
Waldermort6-Feb-07 5:32
Waldermort6-Feb-07 5:32 
QuestionRe: Timer/ Multitasking?? Pin
Roger Stoltz6-Feb-07 5:35
Roger Stoltz6-Feb-07 5:35 
QuestionTreeCtrl within ListCtrl. How ?. Pin
Sakthiu6-Feb-07 1:57
Sakthiu6-Feb-07 1:57 
AnswerRe: TreeCtrl within ListCtrl. How ?. Pin
prasad_som6-Feb-07 2:37
prasad_som6-Feb-07 2:37 
QuestionC++ confusion Pin
User 98856-Feb-07 1:52
User 98856-Feb-07 1:52 
AnswerRe: C++ confusion Pin
prasad_som6-Feb-07 2:24
prasad_som6-Feb-07 2:24 
GeneralRe: C++ confusion Pin
User 98856-Feb-07 2:26
User 98856-Feb-07 2:26 
AnswerRe: C++ confusion Pin
Roger Stoltz6-Feb-07 2:31
Roger Stoltz6-Feb-07 2:31 
GeneralRe: C++ confusion Pin
User 98856-Feb-07 2:33
User 98856-Feb-07 2:33 
Question4 Views with CSplitterWnd - Help needed Pin
Franz Klein6-Feb-07 1:46
Franz Klein6-Feb-07 1:46 
QuestionRe: 4 Views with CSplitterWnd - Help needed Pin
Mark Salsbery6-Feb-07 7:50
Mark Salsbery6-Feb-07 7:50 
AnswerRe: 4 Views with CSplitterWnd - Help needed Pin
Franz Klein7-Feb-07 6:53
Franz Klein7-Feb-07 6:53 
GeneralRe: 4 Views with CSplitterWnd - Help needed Pin
Mark Salsbery7-Feb-07 8:14
Mark Salsbery7-Feb-07 8:14 

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.