Click here to Skip to main content
15,908,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to load text file into an array of structures..? [modified] Pin
Software_Specialist18-Feb-07 2:06
Software_Specialist18-Feb-07 2:06 
AnswerRe: How to load text file into an array of structures..? Pin
Waldermort18-Feb-07 3:11
Waldermort18-Feb-07 3:11 
GeneralRe: How to load text file into an array of structures..? Pin
Software_Specialist18-Feb-07 4:36
Software_Specialist18-Feb-07 4:36 
GeneralRe: How to load text file into an array of structures..? Pin
Waldermort18-Feb-07 5:11
Waldermort18-Feb-07 5:11 
GeneralRe: How to load text file into an array of structures..? Pin
David Crow18-Feb-07 16:29
David Crow18-Feb-07 16:29 
GeneralRe: How to load text file into an array of structures..? Pin
Waldermort18-Feb-07 18:24
Waldermort18-Feb-07 18:24 
GeneralRe: How to load text file into an array of structures..? Pin
Software_Specialist19-Feb-07 1:53
Software_Specialist19-Feb-07 1:53 
AnswerRe: How to load text file into an array of structures..? Pin
Bram van Kampen19-Feb-07 13:30
Bram van Kampen19-Feb-07 13:30 
Why on earth use a Text File for this! If it HAS to be a Text File, I would add a Sync Key at the start of each record. (This is Line of Text such as:"$$$***&&&?//??**<<>>"). You scan this line at the start of each record, and compare it with your Hardcoded String. If it does not compare, you're out of sync. This means that you are alerted to something being wrong, and you have atleast some hope of recovery.
The way I would approach this would be to store the structures directly in the file as binary. Keep in mind that what starts now as small data, will in time grow into a huge record. Searching in a Huge textfile ends up time consuming. Weeding out redundant records can be problematic.

LateNightsInNewry

Questiondispaly thambnails of the images on the view Pin
vasu_sri18-Feb-07 0:33
vasu_sri18-Feb-07 0:33 
AnswerRe: dispaly thambnails of the images on the view Pin
Hamid_RT18-Feb-07 4:41
Hamid_RT18-Feb-07 4:41 
QuestionRe: dispaly thambnails of the images on the view Pin
Mark Salsbery18-Feb-07 7:19
Mark Salsbery18-Feb-07 7:19 
QuestionResource Localization (Polish Character) Pin
Anik3318-Feb-07 0:28
Anik3318-Feb-07 0:28 
AnswerRe: Resource Localization (Polish Character) Pin
ovidiucucu18-Feb-07 12:38
ovidiucucu18-Feb-07 12:38 
Questiondisplaying the thumbnail preview of the images on the view Pin
vasu_sri17-Feb-07 22:05
vasu_sri17-Feb-07 22:05 
AnswerRe: displaying the thumbnail preview of the images on the view Pin
Hamid_RT18-Feb-07 4:40
Hamid_RT18-Feb-07 4:40 
GeneralRe: displaying the thumbnail preview of the images on the view Pin
vasu_sri18-Feb-07 19:45
vasu_sri18-Feb-07 19:45 
GeneralRe: displaying the thumbnail preview of the images on the view Pin
Hamid_RT18-Feb-07 20:40
Hamid_RT18-Feb-07 20:40 
GeneralRe: displaying the thumbnail preview of the images on the view Pin
vasu_sri19-Feb-07 22:30
vasu_sri19-Feb-07 22:30 
GeneralRe: displaying the thumbnail preview of the images on the view Pin
Hamid_RT19-Feb-07 23:09
Hamid_RT19-Feb-07 23:09 
QuestionVisual C++ 6 and Windows Vista Pin
D_code_writer17-Feb-07 19:12
D_code_writer17-Feb-07 19:12 
AnswerRe: Visual C++ 6 and Windows Vista Pin
Christian Graus17-Feb-07 19:27
protectorChristian Graus17-Feb-07 19:27 
GeneralRe: Visual C++ 6 and Windows Vista Pin
Stephen Hewitt18-Feb-07 14:18
Stephen Hewitt18-Feb-07 14:18 
GeneralRe: Visual C++ 6 and Windows Vista Pin
ldsdbomber19-Feb-07 0:33
ldsdbomber19-Feb-07 0:33 
GeneralRe: Visual C++ 6 and Windows Vista Pin
Christian Graus19-Feb-07 8:48
protectorChristian Graus19-Feb-07 8:48 
AnswerRe: Visual C++ 6 and Windows Vista Pin
Michael Dunn17-Feb-07 21:42
sitebuilderMichael Dunn17-Feb-07 21:42 

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.