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

C#

 
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 
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 
If you could rewrite the file using xml tags .NET has some nice built in support for reading and writing that would do exactly what you want, shoot me an email and i'll send you some examples(mine are too long to post here, but only because i load a lot of data from the files, and do the same for writing them). Another, probably not very good way is to open the file into a stream reader and use the ReadLine() method to grab each line and put it into a string, then fall through a switch on the first character so you know what kind of object to use, and writing may be a bit more difficult it'd depend on how you deal with the data in your program...personally i'd prefer a foreach and then use a switch on the object type, as its simple, and easy to fix, but it doesnt work everywhere...if you'd like examples shoot me an email.

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 
GeneralRe: Progress Bar: File Copy Pin
numbers1thru928-Aug-06 9:47
numbers1thru928-Aug-06 9:47 
QuestionDatagridViewCaption? Pin
Itanium28-Aug-06 7:07
Itanium28-Aug-06 7:07 
AnswerRe: DatagridViewCaption? Pin
Nader Elshehabi28-Aug-06 7:43
Nader Elshehabi28-Aug-06 7:43 

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.