Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: integer to string? Pin
Gary R. Wheeler5-Mar-06 2:22
Gary R. Wheeler5-Mar-06 2:22 
AnswerRe: integer to string? Pin
Stephen Hewitt5-Mar-06 2:35
Stephen Hewitt5-Mar-06 2:35 
AnswerRe: integer to string? Pin
Michael Dunn5-Mar-06 6:27
sitebuilderMichael Dunn5-Mar-06 6:27 
AnswerRe: integer to string? Pin
John R. Shaw5-Mar-06 14:46
John R. Shaw5-Mar-06 14:46 
AnswerRe: integer to string? Pin
Pacificat0r7-Mar-06 10:52
Pacificat0r7-Mar-06 10:52 
QuestionPorting from WinInet to WinHttp 5.1 Pin
shaylin5-Mar-06 2:02
shaylin5-Mar-06 2:02 
Questionreading a string from an unknown position in a file Pin
SWDevil5-Mar-06 1:30
SWDevil5-Mar-06 1:30 
AnswerRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler5-Mar-06 2:13
Gary R. Wheeler5-Mar-06 2:13 
You've got a couple options here.

1. If the file is relatively small, read the entire file into a string and then use one of the string search functions (like strstr) to find the opening marker <<A>>. Extract the data from where you find it.

2. If the file is large, read it a chunk at a time. Look for the first character in the marker in the chunk. If you find it, read enough more out of the file, appending to the chunk, that you're sure you have all of the data you're interested in. Extract the data.

3. Given your example, it almost sounds like you're trying to read XML. If that's the case, there's plenty of code around for helping you do that.


Software Zen: delete this;
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 2:27
SWDevil5-Mar-06 2:27 
GeneralRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler5-Mar-06 2:53
Gary R. Wheeler5-Mar-06 2:53 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 17:13
Stephen Hewitt5-Mar-06 17:13 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 20:06
SWDevil5-Mar-06 20:06 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 20:24
Stephen Hewitt5-Mar-06 20:24 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 20:52
SWDevil5-Mar-06 20:52 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 20:56
Stephen Hewitt5-Mar-06 20:56 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 21:24
SWDevil5-Mar-06 21:24 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 21:32
Stephen Hewitt5-Mar-06 21:32 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 21:37
SWDevil5-Mar-06 21:37 
GeneralRe: reading a string from an unknown position in a file Pin
Stephen Hewitt5-Mar-06 21:47
Stephen Hewitt5-Mar-06 21:47 
GeneralRe: reading a string from an unknown position in a file Pin
SWDevil5-Mar-06 21:53
SWDevil5-Mar-06 21:53 
GeneralRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler6-Mar-06 12:41
Gary R. Wheeler6-Mar-06 12:41 
QuestionRe: reading a string from an unknown position in a file Pin
David Crow6-Mar-06 3:18
David Crow6-Mar-06 3:18 
AnswerRe: reading a string from an unknown position in a file Pin
Gary R. Wheeler6-Mar-06 12:44
Gary R. Wheeler6-Mar-06 12:44 
AnswerRe: reading a string from an unknown position in a file Pin
David Crow6-Mar-06 3:15
David Crow6-Mar-06 3:15 
QuestionA beginners question about UINT Pin
Waldermort5-Mar-06 1:04
Waldermort5-Mar-06 1:04 

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.