Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question(Beginner) Explanations about rewind, eof(), reading a file several times [modified] Pin
garfaoui24-Jul-07 23:57
garfaoui24-Jul-07 23:57 
AnswerRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
Rage25-Jul-07 1:35
professionalRage25-Jul-07 1:35 
GeneralRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
garfaoui25-Jul-07 2:09
garfaoui25-Jul-07 2:09 
QuestionRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
garfaoui25-Jul-07 2:20
garfaoui25-Jul-07 2:20 
AnswerRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
Paresh Chitte25-Jul-07 2:32
Paresh Chitte25-Jul-07 2:32 
AnswerRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
David Crow25-Jul-07 2:44
David Crow25-Jul-07 2:44 
QuestionRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
David Crow25-Jul-07 2:50
David Crow25-Jul-07 2:50 
AnswerRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
garfaoui25-Jul-07 5:25
garfaoui25-Jul-07 5:25 
I didn´t call fichier10.open() simply because i don´t know this function. I am a real beginner! Roll eyes | :rolleyes:
Concerning the skipping of the 55 first bytes your right. And if i didn´t use the function seekg() it´s again because i didn´t know it exists, so i had to do without it. Smile | :) However, i am not trying to be elegant for now, i am just trying to have programm which works Big Grin | :-D . But next time i have to do that kind of task be sure that i will use seekg()
And finally, the second argument is to put the date at the end of the name of file. It´s related with:
// Getting the date :    <br />
	<br />
	time_t date_codee;<br />
	tm * date;<br />
    ostringstream ostr(ostringstream::out);<br />
	date_codee = time(NULL);<br />
	date = localtime(&date_codee);<br />
	ostr << "clippr-" <br />
		 << date->tm_mday <br />
		 <<"-"<br />
         << date->tm_mon + 1 <br />
		 <<"-"<br />
		 << date->tm_year + 1900<br />
		 << ".txt";

So now, i have a running programme, but i still have a problem with the name of files which changes every day. I have tryied to get information about CFileFind::FindFile and CFindFile::FindNextFile, but i don´t understand...Confused | :confused:
Could anyone show me an exemple with wide comments?Roll eyes | :rolleyes:

Thank you
GeneralRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
David Crow25-Jul-07 5:35
David Crow25-Jul-07 5:35 
NewsRe: (Beginner) Explanations about rewind, eof(), reading a file several times Pin
garfaoui25-Jul-07 21:24
garfaoui25-Jul-07 21:24 
QuestionCString to char conversion Pin
pete007_ke24-Jul-07 22:43
pete007_ke24-Jul-07 22:43 
AnswerRe: CString to char conversion Pin
jhwurmbach24-Jul-07 23:37
jhwurmbach24-Jul-07 23:37 
GeneralRe: CString to char conversion Pin
pete007_ke25-Jul-07 1:03
pete007_ke25-Jul-07 1:03 
Question"Language for non-Unicode programs " affects my unicode program Pin
code_discuss24-Jul-07 22:02
code_discuss24-Jul-07 22:02 
GeneralRe: "Language for non-Unicode programs " affects my unicode program Pin
Matthew Faithfull25-Jul-07 0:54
Matthew Faithfull25-Jul-07 0:54 
QuestionCreating folder in start menu with a dot(.) at end. Pin
Y K Kishore Kumar24-Jul-07 21:57
Y K Kishore Kumar24-Jul-07 21:57 
AnswerRe: Creating folder in start menu with a dot(.) at end. Pin
Jonathan [Darka]24-Jul-07 22:46
professionalJonathan [Darka]24-Jul-07 22:46 
GeneralRe: Creating folder in start menu with a dot(.) at end. Pin
Y K Kishore Kumar24-Jul-07 23:17
Y K Kishore Kumar24-Jul-07 23:17 
GeneralRe: Creating folder in start menu with a dot(.) at end. Pin
Jonathan [Darka]24-Jul-07 23:22
professionalJonathan [Darka]24-Jul-07 23:22 
AnswerRe: Creating folder in start menu with a dot(.) at end. Pin
David Crow25-Jul-07 3:28
David Crow25-Jul-07 3:28 
Questionconvert WTL to MFC Pin
Rokini24-Jul-07 21:47
Rokini24-Jul-07 21:47 
AnswerRe: convert WTL to MFC Pin
Kevin McFarlane25-Jul-07 6:45
Kevin McFarlane25-Jul-07 6:45 
AnswerRe: convert WTL to MFC Pin
DevMentor.org25-Jul-07 8:46
DevMentor.org25-Jul-07 8:46 
QuestionVC++ application is Multitasking? Pin
rp_suman24-Jul-07 20:58
rp_suman24-Jul-07 20:58 
AnswerRe: VC++ application is Multitasking? Pin
Cedric Moonen24-Jul-07 21:02
Cedric Moonen24-Jul-07 21:02 

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.