How to read a part of a text file and put them in an array in c#
0 #1 1 Day Ago
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
.
.
.
/
yamid 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
sknake 1,622 Senior Poster Featured Poster
Geekitygeek commented: i would give my left nut to have your code library! :p +1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.