c# - Reading a text file: 'If' character store information after character -


Everything I am trying to read is read in a text file that keeps all the data related to the portion of the car Such as weight, acceleration, top speed etc. I just want to be able to write in the text file: W5A10T20

So I have to check if there is a character and if so, the value then This is what I've been trying so far:

Public Virtual Zero Reidstate (String Choice Model) {List line = New list (); Using

  (var ModelInfo = new FileStream (Selected Model, FileMode.OpenOrCreate)) {{StreamReader Reader = New StreamReader (ModelInfo)} {float input; String line = reader Readline (); Save the value after ({line = reader. Redline ())! = Null () (if (line wires ("w")) {// after the character.}}}}}   

For some reason this is not even getting 'W' character in 'if' for some reason besides how I will have to go about grabbing the price after the character.

Thank you.

For any reason, you are not using substrings?

  var test = line.substring ("w")   

call it your blu Keep a. / P>

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -