Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
QuestionCheck who has taken the handle of the text file. Pin
Sunil G22-Feb-10 19:47
Sunil G22-Feb-10 19:47 
AnswerRe: Check who has taken the handle of the text file. Pin
Calla22-Feb-10 21:06
Calla22-Feb-10 21:06 
GeneralRe: Check who has taken the handle of the text file. [modified] Pin
Sunil G22-Feb-10 21:19
Sunil G22-Feb-10 21:19 
GeneralRe: Check who has taken the handle of the text file. Pin
Calla22-Feb-10 21:37
Calla22-Feb-10 21:37 
GeneralRe: Check who has taken the handle of the text file. [modified] Pin
Sunil G22-Feb-10 21:40
Sunil G22-Feb-10 21:40 
GeneralRe: Check who has taken the handle of the text file. Pin
Calla22-Feb-10 22:14
Calla22-Feb-10 22:14 
GeneralRe: Check who has taken the handle of the text file. Pin
Manoj_Leo23-Feb-10 6:42
Manoj_Leo23-Feb-10 6:42 
AnswerRe: Check who has taken the handle of the text file. Pin
Saksida Bojan23-Feb-10 1:31
Saksida Bojan23-Feb-10 1:31 
GeneralRe: Check who has taken the handle of the text file. Pin
Sunil G23-Feb-10 2:29
Sunil G23-Feb-10 2:29 
QuestionImage Interpolation Pin
Steven Schmoll22-Feb-10 18:40
Steven Schmoll22-Feb-10 18:40 
AnswerRe: Image Interpolation Pin
RichardM123-Feb-10 14:50
RichardM123-Feb-10 14:50 
GeneralRe: Image Interpolation Pin
Steven Schmoll23-Feb-10 16:43
Steven Schmoll23-Feb-10 16:43 
QuestionWarning Message box Pin
shahramkeyboard22-Feb-10 8:48
shahramkeyboard22-Feb-10 8:48 
AnswerRe: Warning Message box Pin
Not Active22-Feb-10 11:54
mentorNot Active22-Feb-10 11:54 
QuestionC# .net.Mail Pin
Jamelon6922-Feb-10 8:19
Jamelon6922-Feb-10 8:19 
AnswerRe: C# .net.Mail Pin
DaveyM6922-Feb-10 8:29
professionalDaveyM6922-Feb-10 8:29 
AnswerRe: C# .net.Mail Pin
Dr.Walt Fair, PE22-Feb-10 8:31
professionalDr.Walt Fair, PE22-Feb-10 8:31 
AnswerRe: C# .net.Mail Pin
Gaurav Dudeja India22-Feb-10 19:20
Gaurav Dudeja India22-Feb-10 19:20 
AnswerRe: C# .net.Mail Pin
Richard MacCutchan22-Feb-10 22:16
mveRichard MacCutchan22-Feb-10 22:16 
QuestionBest way to read ASCII input [modified] Pin
spainchaud22-Feb-10 6:13
spainchaud22-Feb-10 6:13 
AnswerRe: Best way to read ASCII input Pin
harold aptroot22-Feb-10 6:32
harold aptroot22-Feb-10 6:32 
GeneralRe: Best way to read ASCII input Pin
spainchaud22-Feb-10 6:38
spainchaud22-Feb-10 6:38 
AnswerRe: Best way to read ASCII input [modified] Pin
Saksida Bojan22-Feb-10 6:36
Saksida Bojan22-Feb-10 6:36 
GeneralRe: Best way to read ASCII input Pin
harold aptroot22-Feb-10 6:39
harold aptroot22-Feb-10 6:39 
AnswerRe: Best way to read ASCII input Pin
Dr.Walt Fair, PE22-Feb-10 7:03
professionalDr.Walt Fair, PE22-Feb-10 7:03 
I think you have a typo in this line and are missing some curly braces.

if (firstword.CompareTo("FORMATIOM") == 0)
formation = new Formation();
readMode = "FORMATION";


In addition, you can just use
firstword == "FORMATION"
, but I would force a convert to uppercase with
firstword.ToUpper() 
if there is no guarantee that input will be uppercase.

Finally, if those lines or similar are found in all input sequences, there is some room to generalize the input section, but I have no way of knowing whether that is the case or not.

I'm curious, from the input, are you working on geological or reservoir engineering software? I do some of that, so the input looks somewhat familiar.
CQ de W5ALT

Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software


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.