Click here to Skip to main content
16,008,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to access a non-static method from another object? Pin
Judah Gabriel Himango28-Aug-06 12:50
sponsorJudah Gabriel Himango28-Aug-06 12:50 
QuestionRegarding Final Year Project Pin
Muhammad Chitrali28-Aug-06 9:12
Muhammad Chitrali28-Aug-06 9:12 
AnswerRe: Regarding Final Year Project Pin
Eric Dahlvang28-Aug-06 11:26
Eric Dahlvang28-Aug-06 11:26 
AnswerRe: Regarding Final Year Project Pin
Professor Sharada Ulhas28-Aug-06 12:55
Professor Sharada Ulhas28-Aug-06 12:55 
GeneralRe: Regarding Final Year Project Pin
Muhammad Chitrali29-Aug-06 22:54
Muhammad Chitrali29-Aug-06 22:54 
QuestionHow to extract Image metadata Pin
pasha2k28-Aug-06 8:49
pasha2k28-Aug-06 8:49 
AnswerRe: How to extract Image metadata Pin
Eric Dahlvang28-Aug-06 11:33
Eric Dahlvang28-Aug-06 11:33 
QuestionParse a text file into an object Pin
AndyHug28-Aug-06 8:41
AndyHug28-Aug-06 8:41 
hi,

I have an text file grouped into records that I need to be parsed into a object. The record is like :

H10000<cr> ( H from header of the record )
I1,name,age,sex (Information1)
C1,text... (Comment 1 for Information1)
....
Cn,text... (Comment n for Information1)
I2,name,age,sex (Information2)
C1,text... (Comment1 for Information2)
....
Cn,text... (Commentn for Information2)
...
In,name,age,sex (Information n)
C1,text... (Comment1 for Information n)
....
Cn,text... (Commentn for Information n)

E1 (End message)

There is a class for each Tag (H,I,C,E) and a Record class that is the superclass for the classes(H,I,C,E) . I need to parse this file and store the informations from the records into a object using generics. For the informations I must use a list. I also need the reverse operation : from object to write to file.

I realize that the code must be written by myself but I would appreciate some general help about how to create the object from file

thanks
AnswerRe: Parse a text file into an object Pin
Ed.Poore28-Aug-06 9:14
Ed.Poore28-Aug-06 9:14 
AnswerRe: Parse a text file into an object Pin
Not Active28-Aug-06 9:15
mentorNot Active28-Aug-06 9:15 
AnswerRe: Parse a text file into an object Pin
SomeGuyThatIsMe28-Aug-06 9:16
SomeGuyThatIsMe28-Aug-06 9:16 
GeneralRe: Parse a text file into an object Pin
Guffa28-Aug-06 9:35
Guffa28-Aug-06 9:35 
GeneralRe: Parse a text file into an object Pin
SomeGuyThatIsMe28-Aug-06 9:42
SomeGuyThatIsMe28-Aug-06 9:42 
GeneralRe: Parse a text file into an object Pin
AndyHug28-Aug-06 9:41
AndyHug28-Aug-06 9:41 
GeneralRe: Parse a text file into an object Pin
SomeGuyThatIsMe28-Aug-06 10:09
SomeGuyThatIsMe28-Aug-06 10:09 
GeneralRe: Parse a text file into an object Pin
AndyHug30-Aug-06 4:31
AndyHug30-Aug-06 4:31 
GeneralRe: Parse a text file into an object Pin
SomeGuyThatIsMe30-Aug-06 5:02
SomeGuyThatIsMe30-Aug-06 5:02 
QuestionProgress Bar: File Copy Pin
numbers1thru928-Aug-06 8:13
numbers1thru928-Aug-06 8:13 
AnswerRe: Progress Bar: File Copy Pin
pasha2k28-Aug-06 8:31
pasha2k28-Aug-06 8:31 
AnswerRe: Progress Bar: File Copy Pin
mav.northwind28-Aug-06 8:32
mav.northwind28-Aug-06 8:32 
GeneralRe: Progress Bar: File Copy Pin
pasha2k28-Aug-06 8:57
pasha2k28-Aug-06 8:57 
GeneralRe: Progress Bar: File Copy Pin
mav.northwind28-Aug-06 9:30
mav.northwind28-Aug-06 9:30 
AnswerRe: Progress Bar: File Copy Pin
Nader Elshehabi28-Aug-06 8:35
Nader Elshehabi28-Aug-06 8:35 
GeneralRe: Progress Bar: File Copy Pin
pasha2k28-Aug-06 8:51
pasha2k28-Aug-06 8:51 
GeneralRe: Progress Bar: File Copy Pin
Nader Elshehabi28-Aug-06 9:54
Nader Elshehabi28-Aug-06 9:54 

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.