yamid

yamid

  • NA
  • 98
  • 0

read a specific part of a text file into an ARRAY in C#

Oct 10 2009 7:43 AM
I have a text file including several strings and doubles. I want to find a specific string in the text and read all double numbers after it which are located between two slashes"/". The number of double data could be unknown-but we just know they are bounded with two slashes- the file is two big and including several strings for example my data file is like this and I want to put all Double numbers,bounded between slashes and after "POROSITY" into an array with name "POROSITY". ************************************************** Permeability / 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 . . . / POROSITY / 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 . . . /

Answers (7)