Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: read a certain line from a text file Pin
avenger_sb255-Apr-04 4:46
avenger_sb255-Apr-04 4:46 
GeneralRe: read a certain line from a text file Pin
dairiseky5-Apr-04 5:18
dairiseky5-Apr-04 5:18 
GeneralRe: read a certain line from a text file Pin
avenger_sb255-Apr-04 7:10
avenger_sb255-Apr-04 7:10 
GeneralRe: read a certain line from a text file Pin
dairiseky5-Apr-04 8:02
dairiseky5-Apr-04 8:02 
GeneralRe: read a certain line from a text file Pin
avenger_sb255-Apr-04 8:51
avenger_sb255-Apr-04 8:51 
GeneralRe: read a certain line from a text file Pin
David Crow5-Apr-04 4:50
David Crow5-Apr-04 4:50 
GeneralRe: read a certain line from a text file Pin
dairiseky5-Apr-04 5:22
dairiseky5-Apr-04 5:22 
GeneralRe: read a certain line from a text file Pin
David Crow5-Apr-04 7:33
David Crow5-Apr-04 7:33 
dairiseky wrote:
Is space or tab considered as getting in the value's lenth?

Yes, just because the character is not printable does not make it any less of a character.

The seekg() method goes to a certain position within the file. It knows nothing of line-length. So if you had a two-line file, with the first line being 5 characters and the second line being 15 characters, seekg(6) would go to the start of the second line, but if the length of the first line ever changed, it wouldn't. Understand?


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)


GeneralRe: read a certain line from a text file Pin
Anonymous5-Apr-04 7:44
Anonymous5-Apr-04 7:44 
GeneralRe: read a certain line from a text file Pin
dairiseky5-Apr-04 7:48
dairiseky5-Apr-04 7:48 
GeneralRe: read a certain line from a text file Pin
dairiseky6-Apr-04 2:46
dairiseky6-Apr-04 2:46 
GeneralRe: read a certain line from a text file Pin
David Crow6-Apr-04 3:24
David Crow6-Apr-04 3:24 
GeneralDialog related question Pin
Imtiaz Murtaza5-Apr-04 2:16
Imtiaz Murtaza5-Apr-04 2:16 
GeneralRe: Dialog related question Pin
avenger_sb255-Apr-04 2:48
avenger_sb255-Apr-04 2:48 
GeneralRe: Dialog related question Pin
David Crow5-Apr-04 4:52
David Crow5-Apr-04 4:52 
GeneralC++ Pin
cberam5-Apr-04 2:05
cberam5-Apr-04 2:05 
GeneralRe: C++ Pin
Steve S5-Apr-04 2:24
Steve S5-Apr-04 2:24 
GeneralRe: C++ Pin
RichardGrimmer19-Apr-04 5:36
RichardGrimmer19-Apr-04 5:36 
GeneralRe: C++ Pin
avenger_sb255-Apr-04 2:33
avenger_sb255-Apr-04 2:33 
GeneralDifference b/w HTTP PROXY ans SOCKS Pin
Anonymous5-Apr-04 1:15
Anonymous5-Apr-04 1:15 
GeneralRe: Difference b/w HTTP PROXY ans SOCKS Pin
Antony M Kancidrowski6-Apr-04 1:31
Antony M Kancidrowski6-Apr-04 1:31 
GeneralDatabase Reverse Engineer Database Diagram, Algorithms Pin
Braulio Dez5-Apr-04 0:58
Braulio Dez5-Apr-04 0:58 
GeneralProblem with CFileDialog (access violation). Pin
Member 116346825-Apr-04 0:54
Member 116346825-Apr-04 0:54 
GeneralRe: Problem with CFileDialog (access violation). Pin
Antony M Kancidrowski5-Apr-04 6:49
Antony M Kancidrowski5-Apr-04 6:49 
GeneralAbout Resource DLL's Pin
Rassul Yunussov5-Apr-04 0:50
Rassul Yunussov5-Apr-04 0:50 

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.