Home > Net >  In c # read TXT (column is unknown, a line of a data, there are about 9000), to a one dimensional ar
In c # read TXT (column is unknown, a line of a data, there are about 9000), to a one dimensional ar

Time:09-16

10.6732
10.6767
10.6591
10.6689
10.6674
10.6616
10.6565
10.6768
10.6713
10.6793
10.6849
10.6732
10.6751
10.663
10.5841
10.6369
10.7513
10.6614
10.6599
10.6664
10.6615
10.6615
10.6607
10.6547
10.6498
10.6565
10.6505
10.6533
10.5553
10.5358
10.5134
10.5415
10.5532
10.6654
10.6675
10.6664
10.6601
10.6647
Partial data
Interface is shown in figure

CodePudding user response:

Please have bosses teach

CodePudding user response:

Double [] arr=File. ReadAllLines (" 1. TXT "). The Select (x=& gt; Double. Parse (x)). ToArray ();
  •  Tags:  
  • C#
  • Related