Click here to Skip to main content
15,792,959 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Read from text file Pin
OriginalGriff23-Dec-16 22:34
mvaOriginalGriff23-Dec-16 22:34 
GeneralRe: C# Read from text file Pin
Pavlex423-Dec-16 22:40
Pavlex423-Dec-16 22:40 
AnswerRe: C# Read from text file Pin
Midi_Mick23-Dec-16 22:41
professionalMidi_Mick23-Dec-16 22:41 
GeneralRe: C# Read from text file Pin
Pavlex423-Dec-16 22:53
Pavlex423-Dec-16 22:53 
GeneralRe: C# Read from text file Pin
Midi_Mick23-Dec-16 23:09
professionalMidi_Mick23-Dec-16 23:09 
GeneralRe: C# Read from text file Pin
OriginalGriff23-Dec-16 23:56
mvaOriginalGriff23-Dec-16 23:56 
GeneralRe: C# Read from text file Pin
Dave Kreskowiak24-Dec-16 5:38
mveDave Kreskowiak24-Dec-16 5:38 
AnswerRe: C# Read from text file Pin
Gerry Schmitz26-Dec-16 6:42
mveGerry Schmitz26-Dec-16 6:42 
I think yours is an excellent example of "agile programming"; i.e. no planning, just "coding".

It is obvious the leading and trailing "[]" can be eliminated.

We then wind up with a "coma-delimited" file record; which can be split using string split (6 tokens).

Then it's just a question of testing the first token for an "?".

But, hey, as long as we come up with the "right answer", then it's all good. Right?

QuestionC# Specified cast is not valid Pin
Pavlex422-Dec-16 21:48
Pavlex422-Dec-16 21:48 
AnswerRe: C# Specified cast is not valid Pin
Richard MacCutchan22-Dec-16 22:23
mveRichard MacCutchan22-Dec-16 22:23 
GeneralRe: C# Specified cast is not valid Pin
Pavlex422-Dec-16 22:33
Pavlex422-Dec-16 22:33 
GeneralRe: C# Specified cast is not valid Pin
Richard MacCutchan22-Dec-16 23:09
mveRichard MacCutchan22-Dec-16 23:09 
GeneralRe: C# Specified cast is not valid Pin
harold aptroot22-Dec-16 23:26
harold aptroot22-Dec-16 23:26 
GeneralRe: C# Specified cast is not valid Pin
Richard MacCutchan22-Dec-16 23:33
mveRichard MacCutchan22-Dec-16 23:33 
GeneralRe: C# Specified cast is not valid Pin
harold aptroot22-Dec-16 23:39
harold aptroot22-Dec-16 23:39 
GeneralRe: C# Specified cast is not valid Pin
Richard MacCutchan22-Dec-16 23:54
mveRichard MacCutchan22-Dec-16 23:54 
GeneralRe: C# Specified cast is not valid Pin
OriginalGriff22-Dec-16 23:12
mvaOriginalGriff22-Dec-16 23:12 
AnswerRe: C# Specified cast is not valid Pin
OriginalGriff22-Dec-16 23:11
mvaOriginalGriff22-Dec-16 23:11 
AnswerRe: C# Specified cast is not valid Pin
Nelson Costa Inácio22-Dec-16 23:42
Nelson Costa Inácio22-Dec-16 23:42 
GeneralRe: C# Specified cast is not valid Pin
harold aptroot22-Dec-16 23:45
harold aptroot22-Dec-16 23:45 
GeneralRe: C# Specified cast is not valid Pin
OriginalGriff23-Dec-16 1:05
mvaOriginalGriff23-Dec-16 1:05 
AnswerRe: C# Specified cast is not valid Pin
Pete O'Hanlon23-Dec-16 1:00
subeditorPete O'Hanlon23-Dec-16 1:00 
AnswerRe: C# Specified cast is not valid Pin
Gerry Schmitz23-Dec-16 7:50
mveGerry Schmitz23-Dec-16 7:50 
GeneralRe: C# Specified cast is not valid Pin
Richard MacCutchan23-Dec-16 7:59
mveRichard MacCutchan23-Dec-16 7:59 
QuestionWhat is this JWT Code Doing? Pin
TheOnlyRealTodd21-Dec-16 16:46
professionalTheOnlyRealTodd21-Dec-16 16:46 

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.