Click here to Skip to main content
15,884,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading Unicode from a text file Pin
Michael Schubert26-Mar-09 3:41
Michael Schubert26-Mar-09 3:41 
GeneralRe: Reading Unicode from a text file Pin
Cedric Moonen26-Mar-09 3:33
Cedric Moonen26-Mar-09 3:33 
AnswerRe: Reading Unicode from a text file Pin
Sarath C26-Mar-09 3:05
Sarath C26-Mar-09 3:05 
Questionfseek () Pin
Anu_Bala26-Mar-09 2:00
Anu_Bala26-Mar-09 2:00 
AnswerRe: fseek () Pin
Code-o-mat26-Mar-09 2:08
Code-o-mat26-Mar-09 2:08 
GeneralRe: fseek () Pin
Anu_Bala26-Mar-09 2:10
Anu_Bala26-Mar-09 2:10 
GeneralRe: fseek () Pin
CPallini26-Mar-09 2:49
mveCPallini26-Mar-09 2:49 
AnswerRe: fseek () Pin
Cedric Moonen26-Mar-09 2:11
Cedric Moonen26-Mar-09 2:11 
As far as I know, there's no way to go to a particular line without reading the file. An end of file is a character like any other so to be able to go to a particular line, you need to read those characters.
There would be a way if each line contained always exactly the same number of characters (then you multiply the line number by the number of characters in one line) but it doesn't seem to be the case in your example.

So, the best solution would be to read line by line using fgets and keep the interesting one.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

AnswerRe: fseek () Pin
«_Superman_»26-Mar-09 2:19
professional«_Superman_»26-Mar-09 2:19 
JokeA silly question ... Pin
Joseph Marzbani26-Mar-09 1:39
Joseph Marzbani26-Mar-09 1:39 
GeneralRe: A silly question ... Pin
CPallini26-Mar-09 1:42
mveCPallini26-Mar-09 1:42 
GeneralRe: A silly question ... Pin
Joseph Marzbani26-Mar-09 1:53
Joseph Marzbani26-Mar-09 1:53 
Questionhow to save/load an OLE object CRichEdit::StreamOut / In Pin
Joseph Marzbani26-Mar-09 1:28
Joseph Marzbani26-Mar-09 1:28 
AnswerRe: how to save/load an OLE object CRichEdit::StreamOut / In Pin
David Crow26-Mar-09 3:04
David Crow26-Mar-09 3:04 
AnswerRe: how to save/load an OLE object CRichEdit::StreamOut / In Pin
Stuart Dootson26-Mar-09 3:05
professionalStuart Dootson26-Mar-09 3:05 
QuestionFatal Error-WinDef.h Pin
T.RATHA KRISHNAN26-Mar-09 0:16
T.RATHA KRISHNAN26-Mar-09 0:16 
AnswerRe: Fatal Error-WinDef.h Pin
Joseph Marzbani26-Mar-09 1:33
Joseph Marzbani26-Mar-09 1:33 
GeneralRe: Fatal Error-WinDef.h Pin
led mike26-Mar-09 4:27
led mike26-Mar-09 4:27 
Questiontwo MFC DLL Project Pin
akira3226-Mar-09 0:13
akira3226-Mar-09 0:13 
QuestionRe: two MFC DLL Project Pin
CPallini26-Mar-09 0:22
mveCPallini26-Mar-09 0:22 
AnswerRe: two MFC DLL Project Pin
led mike26-Mar-09 4:30
led mike26-Mar-09 4:30 
QuestionSet password with maximum length for windows system programmaticaly Pin
Shashi.Shinde26-Mar-09 0:12
Shashi.Shinde26-Mar-09 0:12 
AnswerRe: Set password with maximum length for windows system programmaticaly Pin
CPallini26-Mar-09 0:21
mveCPallini26-Mar-09 0:21 
GeneralRe: Set password with maximum length for windows system programmaticaly Pin
Michael Schubert26-Mar-09 0:39
Michael Schubert26-Mar-09 0:39 
GeneralRe: Set password with maximum length for windows system programmaticaly Pin
David Crow26-Mar-09 3:11
David Crow26-Mar-09 3:11 

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.