Link to home
Start Free TrialLog in
Avatar of sydodman
sydodman

asked on

Reading a Text file Line by Line

I have seen numerous reference to this question on the site but for some reason I cant get this to work.  My code is as follows...

Dim varCounter As Integer
Dim varTempStorage As String

varCounter = 0

Open "C:\Code Projects\Cooling\Data\003_7360_p1_p256.txt" For Input As #1

Do Until EOF(1)
  varCounter = varCounter + 1
  Line Input #1, varTempStorage
Loop

Close #1

Label1.Caption = varTempStorage  'Just used to show not all lines are being read...

But label1.caption shows only one line has been read.  The file should contain 19 lines of text.  When I open the file in word, you can see where the carriage returns are and when I open it in Excel it splits it into 19 rows.  The file itself is fairly large (73kb) and each line has hundreds and hundreds of 10 digit numbers spaced by between 5 and 9 spaces.  Im not sure whether this will affect it.  The data itself is generated by another computer and read off a network.  Could it be that visual basic does not recognise the carriage returns (but thenexcel and word seem too....)  Im at a loss, any ideas anyone????
Avatar of sydodman
sydodman

ASKER

Sorry the last line should be

label1.caption = varcounter

Incidentally when run in its original form the caption does show the start of the file so it has been read in...

Thanks!!
To read all the lines from your file to Label1 you dont need to read it line by line. Read the entire file as in:

Dim ff As Integer, tmpLine As String
ff = FreeFile
Open "C:\Code Projects\Cooling\Data\003_7360_p1_p256.txt" For Binary As #ff
    tmpTline = Space$(LOF(ff))
    Get #ff, , tmpTline
Close #fCon
label1.Caption = tmpLine


S
One correction, sorry:

Dim ff As Integer, tmpLine As String
ff = FreeFile
Open "C:\Code Projects\Cooling\Data\003_7360_p1_p256.txt" For Binary As #ff
    tmpTline = Space$(LOF(ff))
    Get #ff, , tmpTline
Close #ff   '<<<<<<<< here I had a typo
label1.Caption = tmpLine


S
Hi,

Thanks for your prompt response.  I ran your code and it doesnt give any value at all.  I should also clarify myself.  I dont just want to count the number of lines in the file I actually do need to split it into individual lines and then again into individual values (splitting at each group of spaces I presume)  My problem is I cant seem to get Visual Basic to see that my text file is indeed split into more than one line.

Thanks!!!
Post here all the 19 lines, pls.

S
As you dont give an example of your text file, and where and how you want to display the results, nor do you give the delimiter of the values within every line, all that left is to do a guess work. So here is an examle:

'to read the file entirely:
Dim ff As Integer, tmpLine As String, mySplit() As String, linesplit() As String, sLoop As Integer
ff = FreeFile
Open "C:\Code Projects\Cooling\Data\003_7360_p1_p256.txt" For Binary As #ff
    tmpTline = Space$(LOF(ff))
    Get #ff, , tmpTline
Close #ff
'to count the lines, and split the file into lines:
mySplit = Split(tmpLine, vbNewLine, -1) 'splitting entire file to lines
label1.Caption = UBound(mySplit) 'gives the number of lines

'to split each line
If UBound(mySplit) > 0 Then
    For sLoop = 0 To UBound(mySplit)
        linesplit = Split(mySplit(sLoop), "your delimiter", -1) 'to split the line. I dont know what is your delimiter
            'to display splitted values in whatever you want to display them: labels, textbox etc...
            'put the code here
    Next sLoop
End If

S
Hi,

It still doesnt work - I cant post the file here, it really is far too big.  I could email it to you??

Thanks

Simon
Of course it doesn't work, this was an example. Just copy 20 lines from the file and post them here. In addition, describe how you want your final result displayed, and I will walk you through.

S
Shauli:
I think you typed in hurry,
label1.Caption = UBound(mySplit) 'gives the number of lines
label1.Caption = UBound(mySplit)-LBound(mySplit)+1 'this gives the number of lines

mySplit = Split(tmpLine, vbNewLine, -1)
Here -1 is not needed because its the deault argument.
* * * session 3, run 7358, repeat 34523 - test 545 * * *
          Label       p1_p256_0       p1_p256_1       p1_p256_2       p1_p256_3       p1_p256_4       p1_p256_5       p1_p256_6       p1_p256_7       p1_p256_8       p1_p256_9      p1_p256_10      p1_p256_11      p1_p256_12      p1_p256_13      p1_p256_14      p1_p256_15      p1_p256_16      p1_p256_17      p1_p256_18      p1_p256_19      p1_p256_20      p1_p256_21      p1_p256_22      p1_p256_23      p1_p256_24      p1_p256_25      p1_p256_26      p1_p256_27      p1_p256_28      p1_p256_29      p1_p256_30      p1_p256_31      p1_p256_32      p1_p256_33      p1_p256_34      p1_p256_35      p1_p256_36      p1_p256_37      p1_p256_38      p1_p256_39      p1_p256_40      p1_p256_41      p1_p256_42      p1_p256_43      p1_p256_44      p1_p256_45      p1_p256_46      p1_p256_47      p1_p256_48      p1_p256_49      p1_p256_50      p1_p256_51      p1_p256_52      p1_p256_53      p1_p256_54      p1_p256_55      p1_p256_56      p1_p256_57      p1_p256_58      p1_p256_59      p1_p256_60      p1_p256_61      p1_p256_62      p1_p256_63      p1_p256_64      p1_p256_65      p1_p256_66      p1_p256_67      p1_p256_68      p1_p256_69      p1_p256_70      p1_p256_71      p1_p256_72      p1_p256_73      p1_p256_74      p1_p256_75      p1_p256_76      p1_p256_77      p1_p256_78      p1_p256_79      p1_p256_80      p1_p256_81      p1_p256_82      p1_p256_83      p1_p256_84      p1_p256_85      p1_p256_86      p1_p256_87      p1_p256_88      p1_p256_89      p1_p256_90      p1_p256_91      p1_p256_92      p1_p256_93      p1_p256_94      p1_p256_95      p1_p256_96      p1_p256_97      p1_p256_98      p1_p256_99     p1_p256_100     p1_p256_101     p1_p256_102     p1_p256_103     p1_p256_104     p1_p256_105     p1_p256_106     p1_p256_107     p1_p256_108     p1_p256_109     p1_p256_110     p1_p256_111     p1_p256_112     p1_p256_113     p1_p256_114     p1_p256_115     p1_p256_116     p1_p256_117     p1_p256_118     p1_p256_119     p1_p256_120     p1_p256_121     p1_p256_122     p1_p256_123     p1_p256_124     p1_p256_125     p1_p256_126     p1_p256_127     p1_p256_128     p1_p256_129     p1_p256_130     p1_p256_131     p1_p256_132     p1_p256_133     p1_p256_134     p1_p256_135     p1_p256_136     p1_p256_137     p1_p256_138     p1_p256_139     p1_p256_140     p1_p256_141     p1_p256_142     p1_p256_143     p1_p256_144     p1_p256_145     p1_p256_146     p1_p256_147     p1_p256_148     p1_p256_149     p1_p256_150     p1_p256_151     p1_p256_152     p1_p256_153     p1_p256_154     p1_p256_155     p1_p256_156     p1_p256_157     p1_p256_158     p1_p256_159     p1_p256_160     p1_p256_161     p1_p256_162     p1_p256_163     p1_p256_164     p1_p256_165     p1_p256_166     p1_p256_167     p1_p256_168     p1_p256_169     p1_p256_170     p1_p256_171     p1_p256_172     p1_p256_173     p1_p256_174     p1_p256_175     p1_p256_176     p1_p256_177     p1_p256_178     p1_p256_179     p1_p256_180     p1_p256_181     p1_p256_182     p1_p256_183     p1_p256_184     p1_p256_185     p1_p256_186     p1_p256_187     p1_p256_188     p1_p256_189     p1_p256_190     p1_p256_191     p1_p256_192     p1_p256_193     p1_p256_194     p1_p256_195     p1_p256_196     p1_p256_197     p1_p256_198     p1_p256_199     p1_p256_200     p1_p256_201     p1_p256_202     p1_p256_203     p1_p256_204     p1_p256_205     p1_p256_206     p1_p256_207     p1_p256_208     p1_p256_209     p1_p256_210     p1_p256_211     p1_p256_212     p1_p256_213     p1_p256_214     p1_p256_215     p1_p256_216     p1_p256_217     p1_p256_218     p1_p256_219     p1_p256_220     p1_p256_221     p1_p256_222     p1_p256_223     p1_p256_224     p1_p256_225     p1_p256_226     p1_p256_227     p1_p256_228     p1_p256_229     p1_p256_230     p1_p256_231     p1_p256_232     p1_p256_233     p1_p256_234     p1_p256_235     p1_p256_236     p1_p256_237     p1_p256_238     p1_p256_239     p1_p256_240     p1_p256_241     p1_p256_242     p1_p256_243     p1_p256_244     p1_p256_245     p1_p256_246     p1_p256_247     p1_p256_248     p1_p256_249     p1_p256_250     p1_p256_251     p1_p256_252     p1_p256_253     p1_p256_254     p1_p256_255
        -9.48400        -1.94978        -1.60010         3.21394         2.15403         3.70115        -1.91129        -0.72349        -2.43548        -1.28007         2.29670         2.39771        -8.48280        -0.39778         2.63161        -2.46061        -0.71382         7.13133        -5.12155        -2.87687         5.23811         0.49211        -2.45485        -4.53813        -1.92152        -3.24089        -2.13569        -2.65995         0.24187        -1.86195        -5.51668        -8.69305        -2.52024        -1.17550         4.75740         4.50466        -1.50902       363.55823         0.20292        -4.62263         1.85180        -1.50540         5.51668         1.97136         0.78680         1.52704         5.09970       399.67343         1.01122         8.53185        -0.11542         1.20405        -3.65094        -1.74604        -4.85779         3.46679        -2.69164         5.16070         7.60221      -903.57800        -1.10296         2.79749        -4.20409         0.27471         1.47803         4.37280         1.26783        -0.56866         4.27097         2.80549        -0.06465        -4.07643         0.41168        -1.51450         8.02198         7.11171         1.80923         2.32984         2.32304         1.54830         1.16078         3.37993         3.18878        -0.49497         5.02309         8.80201        -0.41062         1.59383         2.48503         3.51125         0.16093         3.80327         3.51986       600.85101         0.79815         6.15246         6.04536         5.07865       690.87811       712.96472         3.07219         5.45839         0.54487         2.84075         4.12666         0.73381         1.91896         3.39627         1.93956        -0.22098         4.68457       255.75429         2.04351         1.91809         4.11373         4.29764         7.07331         2.95458         2.02098         2.53591       833.67883         1.11627         4.93443         1.29652        -2.92428         1.15117         3.16735         4.13470        -7.78676        -7.02044        -4.98480         1.24069        -4.29353        -4.89020        -4.46974        -4.02271        -2.47327        -6.19751        -6.94740        -7.30043        -6.18107        -7.11565       178.54596       -13.43028        -2.60236        -4.18627        -3.95299        -6.58636        -5.36567        -3.93670        -7.02186        -6.21427        -5.17244        -9.05959        -6.02116        -2.35824        -7.17714        -6.31749        -7.32980        -7.92988        -6.08842       -10.59986         1.97024      -446.78531        -1.94606       -10.41116        -6.16238       -10.42176       -21.16604        -8.45914        -1.99981        -5.79540     -1639.04810        -8.40906       -10.21183        -8.41498        16.63399       517.04510        -5.43644        -1.53197        -6.38825        -6.04737        -5.66123        -7.63477        -6.17760        -8.05305        -4.61350        -5.16141        -4.18742       -21.14817        -1.26846        -4.32179        -1.21414       140.51044        -2.59064        -1.07577         4.89203        -2.49949        -2.03008        -6.86460       -10.42865        -2.91085        -2.21009        -4.57544        -0.51407         1.73522        -3.08401        -0.22007        -2.99017        -3.09928         0.10031        -3.18372        -1.23929        -5.47556        -1.73054         2.18304         0.65400        -1.14689       -11.75823        -2.69187        -1.93331        -5.65210         0.99475        -1.70060        -0.97563        -0.74334        -1.55266         0.56988        -4.53907        -4.73889         5.03518        -8.19926        -2.08868        -0.42320       540.17963       532.13336       471.64984       451.00174       473.56070       472.88242       378.15457       529.70941        -0.29691        -2.29540       -60.84488        -1.93240       -16.04485         0.52521         3.20707        -0.07442        -1.83281        -4.34924        -2.82172        -8.83229        -0.48091        -1.05036
        -9.85790        -2.50204        -1.88515         3.29372         1.76235         3.44051        -2.22907        -1.35221        -2.41986        -1.30834         1.31900         1.47264        -9.07682        -0.76853         2.25583        -2.46192        -0.91101         6.89920        -5.43780        -3.26567         5.07889         0.57714        -2.89177        -4.96360        -2.24337        -3.72896        -2.40300        -2.95945        -0.15614        -2.17240        -5.87379        -8.99418        -2.82211        -1.36946         4.52234         4.34240        -1.88815       368.45871        -0.10968        -4.89246         1.53685        -1.62702         5.37095         1.65678         0.56539         1.20764         5.18968       400.77148         1.07349         8.43023        -0.15102         1.43041        -3.62330        -1.89105        -4.97542         3.50778        -2.56858         5.02290         7.79924      -892.97461        -0.96086         2.67847        -4.05678         0.23617         1.00645         3.92506         1.02374        -0.72183         4.02415         2.63866        -0.38936        -4.61838        -0.24406        -2.38717         6.96718         5.83815         1.31704         2.07179         2.14482         1.39235         0.88714         3.11781         2.94720        -0.92851         4.53063         8.63106        -0.87679         1.06104         2.19339         2.99291        -0.18128         3.55352         3.55966       609.92535         0.53500         5.84732         5.70143         4.75159       701.09674       723.24896         2.71134         5.16204         0.10387         2.68430         4.07275         0.50293         1.50716         3.21449         1.82414        -0.15834         4.87711       253.23302         2.16576         2.00698         4.06047         4.49908         7.19572         3.09297         2.12131         2.77334       845.33575         1.23965         4.99861         1.14048        -2.87838         1.06634         3.23703         4.13426        -7.71917        -6.94673        -4.90196         1.38114        -3.96649        -4.51871        -4.58384        -4.04491        -2.14149        -6.04061        -6.81031        -7.03576        -5.88065        -6.89873       180.52818       -13.19816        -2.43945        -4.07717        -3.55687        -6.38745        -4.91973        -3.55855        -6.87796        -6.22952        -4.93893        -8.90229        -6.06606        -2.42194        -7.26626        -6.19092        -7.19612        -8.05992        -6.00316       -10.57767         1.93215      -446.86038        -1.98584       -10.48450        -6.32304       -10.64702       -21.13916        -8.35292        -2.14715        -5.97672     -1639.38623        -8.23376       -10.11230        -8.78226        16.78787       516.78369        -7.47864        -1.80097        -6.62275        -6.39735        -6.14551        -8.29167        -7.15704        -8.18239        -4.46710        -5.12494        -4.01180       -21.01106        -1.12146        -4.19116        -1.03144       140.45276        -2.50166        -0.94476         5.14437        -2.46480        -1.61552        -6.70423       -10.24030        -2.63994        -1.94611        -4.79475        -0.36986         1.79778        -2.71434        -0.14050        -2.81004        -2.88215         0.25030        -3.00352        -1.14720        -5.53601        -1.26255         2.38337         0.91382        -1.14579       -11.98495        -2.46995        -1.68191        -5.91024         1.32942        -1.72256        -0.75707        -0.92763        -1.56008         0.33750        -4.10601        -4.82698         4.95773        -8.38119        -2.30405        -0.40078       549.18860       541.29773       479.98932       459.27325       481.87094       481.30136       386.84866       538.62585        -0.00812        -2.20708       -60.51136        -1.93393       -16.00385         0.57676         3.11264        -0.17108        -1.75432        -4.39324        -2.96935        -8.99979        -0.54046        -1.13022
     -1925.11157     -1786.37500     -1681.95947      -338.58536     -1503.15771     -1496.19885     -1566.61646     -1767.65332      -833.14777      -365.02713     -2601.65332     -2762.76855     -2276.56763     -2220.96484     -1994.24255      -440.79480     -1511.96887     -1452.58594     -1489.36890     -1598.95105     -1401.58411      -731.66962     -2107.39331     -2204.69189     -1792.18250     -1648.06189     -1557.30164     -1395.77600     -1452.79907     -1333.62073     -1350.09033     -1375.34668     -1704.15198     -1455.90198     -1505.85181     -1513.76172     -1562.39063      -389.16351     -1436.88281     -1339.35193     -1247.34546     -1021.84436     -1160.60962     -1137.23181     -1124.45947     -1112.88159     -1100.10913      -492.22681       -24.85346       -19.39819       -25.31332       -27.81915       -31.39690       -30.65901       -34.44407       -21.23528       -32.03218       -24.06584       -21.58673     -1748.28528       -29.42379       -25.70618       -32.12056       -26.37499     -1960.60339     -1798.00830     -1657.21155     -1581.96118     -1519.09961     -1512.87207     -1589.18420     -1789.28870     -2032.12195     -2298.58765     -2649.36353     -2810.94653     -2239.28906     -2193.20654     -2089.86743     -1767.72375     -1544.50830     -1467.09338     -1496.40625     -1618.11328     -1724.21912     -1872.48206     -2126.61670     -2237.57690     -1805.28723     -1663.51733     -1568.90833     -1455.63342     -1397.56409      -298.06543     -1350.10596     -1377.29321     -1412.17944     -1468.46240      -451.80103      -456.49432     -1629.34216     -1519.98950     -1439.20691     -1337.54260     -1268.48804     -1204.58606     -1171.80652     -1144.44543     -1132.81458     -1124.57874     -1111.72131      -699.87012       -37.59926       -36.72197       -34.89878       -34.94264       -33.28992       -38.63993       -39.50540       -39.73785      -234.89885       -41.65226       -37.12725       -40.84671       -44.63861       -40.07356       -37.35482       -36.60699        -6.46386        -6.47987        -3.14603        -2.42679       -10.22219        -3.77684         7.23193         4.51428         4.29219        -6.84944        -3.62219         1.57301         8.39359         5.94092       198.84625       -17.07987         4.68479         6.94216        19.04900         9.65869        12.89691        -5.99889        15.95187        15.56266        20.86621         4.83939        16.67947        28.98456        16.02225         9.41921        25.50753        15.03501        26.05819        12.05457        24.46184      -446.24670        11.49854        16.59833        52.78135         6.70922       -16.22701       -11.37346        -4.76795        -2.77046     -2738.33984      -744.63232     -1128.35156     -2026.57922      -333.02032     -1250.99207     -3275.94165     -1641.73145     -1629.92944     -1659.17432     -1819.59253     -2068.86035     -2579.94751       -29.62051       -27.38865       -27.71564       -27.10183       -43.03335       -22.85560       -25.81069       329.44833       162.74237       406.75894        50.79538       371.54492        79.44186       364.36475        93.57960       369.00180        36.43598       456.20624       111.00034       404.02542       179.48112       350.48395        29.14835       365.33517       126.98782       448.87381       165.42386       356.90704         1.34384       351.97900       109.78929       171.52573        38.18530       447.44104       183.76118       434.79691         3.69338       343.07013        93.04284       338.16861        52.46094         4.81445       -10.62909       445.34976       230.64711        -1.80624       -17.07644       -12.66913       -14.91882      -298.46060      -307.23489      -179.47768      -202.08827      -246.28877      -246.82672      -449.52725      -297.72437       -28.31714       -29.78625       -88.45686       -29.37357       -43.09893       -26.27352       -22.67676       -28.30883       -27.04243       -29.96527       -29.07657       -35.76870       -27.98386       -29.00044
     -1916.44995     -1749.24316     -1640.03430      -336.54794     -1474.62158     -1465.19849     -1524.38220     -1697.65491      -796.59015      -352.51724     -2460.72681     -2606.80811     -2145.70020     -2016.62256     -1870.49829      -466.62555     -1638.37854     -1527.50549     -1507.82971     -1559.25183     -1358.60754      -705.43396     -2018.43604     -2105.46289     -1773.54651     -1633.61780     -1545.02026     -1369.25757     -1428.50903     -1308.22510     -1319.95605     -1341.02380     -1643.51917     -1405.28979     -1448.25867     -1464.24451     -1539.05847      -394.99738     -1422.10352     -1327.66858     -1239.18994     -1016.16364     -1154.74731     -1122.51331     -1106.39893     -1088.89368     -1076.64294      -476.00320       -24.45735       -16.93211       -24.85756       -24.37966       -28.95825       -26.55279       -30.73996       -20.78742       -28.84781       -20.74578       -18.31404     -1926.23657       -25.87650       -21.65628       -27.92636       -23.89785     -1988.10571     -1769.04065     -1622.40161     -1552.78101     -1492.42212     -1481.48157     -1545.63037     -1718.81738     -1933.69446     -2175.68652     -2501.03833     -2652.59131     -2143.41016     -2008.64587     -1930.69556     -1813.50684     -1658.04846     -1541.18408     -1511.32166     -1568.13635     -1654.40735     -1801.23181     -2037.72778     -2141.33374     -1786.41260     -1647.60120     -1555.83362     -1438.43042     -1368.03308      -407.56158     -1319.59900     -1339.77979     -1374.16541     -1422.91394      -575.68646      -579.86804     -1607.88440     -1504.88330     -1427.38293     -1328.14795     -1254.35022     -1194.38184     -1158.90735     -1129.94470     -1114.08521     -1101.18591     -1093.23669      -668.71472       -37.31618       -33.78239       -31.84320       -31.40196       -29.28149       -33.54126       -34.94666       -34.15788      -421.50668       -35.88875       -32.70164       -35.27885       -38.67878       -34.98517       -33.45688       -32.00125        -2.02209        -2.88908         1.51407         3.33011        -5.44390         1.05486        11.15434         8.75307         6.33490        -4.67825        -2.14743         3.60114         9.95358         8.29194       201.10722       -15.46297         8.24884         8.66383        18.04105         9.19652        10.97827        -7.80224        14.28427        13.25873        20.02711         3.51048        13.33183        25.94462        13.35336         7.53745        20.57462        11.52318        23.88407         9.03385        20.49403      -450.82065         7.25135        11.90284        49.89117         1.62076       -22.63697       -16.07263       -10.97692        -8.08985     -2782.56421      -777.28082     -1205.09583     -2094.66113      -340.02496     -1257.66846     -3032.35620     -1637.69543     -1608.10742     -1626.59424     -1761.51794     -1979.29565     -2417.67920       -32.32653       -29.29432       -29.13536       -28.45401       -44.52925       -24.40585       -27.34186       301.24777       156.97647       391.32880        45.11877       347.32855        74.10748       365.99756        96.82710       369.87177        35.90206       445.98105       109.71584       363.18637       174.35831       364.67853        26.72893       382.73212       131.25110       434.85513       168.52495       337.04904         1.87510       363.49219       115.77950       184.15063        43.06262       436.12860       191.48454       452.22006        10.07350       348.40341       100.35065       359.10986        61.30333        11.79229        -2.68213       467.21140       241.11438         4.53292        -9.22590        -5.63560        -7.27948      -355.65686      -364.56192      -248.06879      -270.62601      -322.37823      -322.99414      -508.86523      -357.07596       -27.51859       -30.11088       -88.52966       -30.39124       -45.57829       -29.72572       -27.20827       -28.05407       -33.02856       -36.51377       -34.85408       -40.54436       -32.32814       -32.46843
     -2120.20850     -1851.99268     -1655.43323      -318.32141     -1422.74048     -1407.24951     -1454.45105     -1606.82898      -747.34491      -327.40204     -2288.82446     -2417.28052     -2090.47876     -1916.80054     -1723.46985      -432.73950     -1576.02783     -1495.72473     -1451.66968     -1481.48218     -1305.47839      -670.35919     -1906.86121     -1985.49243     -1747.51343     -1610.13843     -1521.29675     -1336.97314     -1404.62183     -1271.53809     -1282.16614     -1295.43823     -1567.44788     -1336.89429     -1371.86096     -1386.53333     -1509.63062      -389.93195     -1401.01843     -1306.30017     -1214.56458      -993.15857     -1126.31384     -1089.74536     -1067.68176     -1045.36865     -1032.04163      -442.45911       -24.26357       -15.13230       -24.81235       -22.49154       -26.56336       -24.88710       -29.43522       -20.25773       -28.59213       -20.67479       -19.88230     -2047.51709       -29.32700       -26.31605       -32.96802       -27.80804     -2273.57104     -1923.78284     -1665.16345     -1507.45752     -1432.92334     -1417.40222     -1471.09387     -1628.61646     -1826.94238     -2049.19116     -2330.73169     -2460.50854     -2099.62427     -1932.49341     -1809.56116     -1670.04236     -1571.67017     -1492.42566     -1446.35828     -1497.56885     -1590.21252     -1722.76941     -1922.43347     -2016.84521     -1753.97778     -1619.70215     -1532.08618     -1414.37830     -1339.94409      -472.86252     -1287.17200     -1298.66174     -1323.04639     -1356.33691      -645.06970      -647.36731     -1575.45129     -1479.50952     -1403.64844     -1303.35632     -1227.20190     -1171.52600     -1138.05286     -1103.12915     -1081.11755     -1067.72644     -1056.75317      -616.22406       -35.61267       -32.87950       -30.18038       -29.57549       -27.70526       -31.44491       -31.78566       -31.04257      -558.80664       -32.17535       -28.11517       -32.39646       -37.05964       -33.30728       -32.27696       -31.22717        -1.04503        -0.06996         3.62835         4.61525        -4.03505         2.18833        12.30500         9.93735         9.26499        -2.28279        -0.43957         4.89697         9.88436         8.35823       198.80150       -15.39499         9.26390         7.97730        17.88873        10.14986        10.04332        -7.03523        15.07682        13.62476        21.63818         3.17554        11.96299        25.37966        13.75877         6.46761        19.37308        10.41180        23.21827         8.58720        19.04959      -447.47839         9.42457        13.68269        52.18539         4.27659       -16.79109       -11.02112        -4.83926        -1.07439     -2810.98218      -808.26215     -1283.17871     -2150.58228      -339.08813     -1257.20129     -2763.41626     -1622.21729     -1575.92688     -1578.85303     -1682.50183     -1861.09900     -2229.12305       -27.55012       -24.61265       -24.03885       -23.51685       -39.50307       -20.16401       -23.76081       296.11588       162.27840       411.46826        49.68739       338.70273        79.27032       372.31161       101.38853       370.14359        35.37914       442.91409       114.31493       352.93048       176.70975       365.57135        24.70065       397.45801       128.96790       414.07291       167.92693       305.79944        -5.40195       349.04724        99.46872       179.29713        31.79872       403.88614       182.09918       464.37387        -1.24772       331.32983        86.53235       345.63202        51.44142         2.74319       -10.63809       472.87155       229.99274        -2.44643       -14.97319       -10.66271       -12.39175      -395.44696      -403.98349      -296.17636      -318.20227      -366.23047      -366.61365      -548.33191      -397.71173       -27.09045       -28.74781       -87.46210       -29.73382       -44.04972       -27.97525       -25.52967       -28.09129       -29.50552       -32.26612       -30.93342       -36.04914       -27.56118       -27.26541
     -1883.75305     -1733.94751     -1631.93115      -330.53372     -1465.05432     -1453.71509     -1509.41150     -1684.78809      -789.28198      -346.57532     -2444.55273     -2594.88770     -2206.31689     -2083.07813     -1920.79468      -460.80524     -1599.16614     -1491.27429     -1485.50745     -1551.03369     -1351.61401      -695.09198     -2004.00159     -2096.34082     -1755.46631     -1622.65979     -1536.51782     -1371.26794     -1428.14771     -1309.30054     -1318.94458     -1340.73853     -1639.15369     -1403.62097     -1447.43530     -1461.85828     -1533.38062      -424.44067     -1425.97827     -1332.37756     -1237.18420     -1007.51819     -1145.49060     -1116.05847     -1102.22937     -1081.20703     -1067.94800      -486.06863       -25.25453       -16.09915       -25.80253       -23.53400       -28.27847       -26.17300       -30.03370       -21.03697       -28.52925       -20.54314       -19.40943     -2184.30371       -28.74188       -25.27093       -32.36039       -26.61868     -1943.22253     -1755.28516     -1617.06665     -1545.43994     -1486.59827     -1473.63171     -1535.64441     -1713.85413     -1933.86987     -2172.89478     -2499.95239     -2652.43481     -2183.88696     -2069.18433     -1999.31653     -1838.64526     -1640.35095     -1517.60779     -1500.46948     -1580.06348     -1660.47290     -1787.70105     -2028.90271     -2136.83984     -1770.49976     -1639.57227     -1550.41809     -1439.02625     -1375.46521      -542.13397     -1327.04468     -1343.66626     -1375.52710     -1422.54968      -721.46643      -724.01514     -1599.86365     -1501.93604     -1427.58484     -1329.83325     -1253.64124     -1191.25085     -1153.30042     -1121.12842     -1105.46899     -1096.28247     -1076.51660      -648.75623       -36.48354       -32.92939       -30.78404       -29.83073       -28.03799       -31.96379       -32.62429       -31.57893      -703.17310       -32.70700       -28.17694       -31.61296       -36.15617       -31.10519       -29.39699       -28.86053         2.98496         2.29151         7.70577         6.53991        -1.69451         3.71259        14.87799        10.74429        10.38304        -1.80836         0.22743         5.43429        10.68315         8.28872       196.07661       -15.17529         7.17300         8.23955        18.68349         9.59164        10.98191        -8.33405        13.60342        12.67517        18.96019         1.55622        12.14329        25.41897        13.44320         6.95389        22.16979        12.18044        25.26060        10.91020        21.14981      -449.55252         8.03279        12.48759        50.60508         2.56957       -21.56915       -16.35223       -11.25509        -8.07280     -2727.85010      -767.60516     -1197.97888     -2041.28625      -335.66812     -1245.07410     -3077.59644     -1626.35571     -1598.23572     -1620.28491     -1761.88477     -1984.11523     -2435.17920       -37.74905       -34.56464       -33.79363       -32.00452       -47.07547       -26.35007       -28.27882       305.01450       153.04190       414.27292        40.26708       350.15091        71.04704       362.40857        94.35443       370.15726        34.12957       450.69791       107.06528       375.70508       172.92647       367.76230        27.39900       379.78375       128.52835       443.32565       167.31685       334.16589         3.16361       356.28143       111.97300       182.45085        44.30219       449.61310       190.60864       430.25906        11.07111       346.99649       101.03720       362.22720        62.83739        14.32954        -2.25953       453.10641       240.39975         5.16837        -9.78410        -5.64885        -7.80858      -454.81458      -463.45737      -352.77295      -374.70984      -423.61581      -424.29031      -611.59369      -460.13135       -30.33253       -31.83650       -90.94598       -32.79829       -46.74214       -30.31877       -27.55252       -28.62851       -33.06350       -35.37040       -34.56562       -40.08997       -32.40058       -32.75103
     -2023.59119     -1782.53088     -1634.82813      -321.58777     -1431.12659     -1412.63330     -1457.32605     -1606.86438      -745.21234      -327.59161     -2287.53101     -2418.79956     -2121.62109     -1943.47583     -1758.43201      -442.24692     -1619.05310     -1527.48425     -1485.10889     -1500.09229     -1311.39355      -666.48248     -1906.97400     -1985.86768     -1746.59167     -1611.80615     -1523.32971     -1341.12073     -1408.43604     -1274.91553     -1283.66064     -1296.50415     -1564.17310     -1338.94946     -1372.63989     -1385.39795     -1517.56506      -477.87708     -1407.74683     -1310.64209     -1218.23499      -992.47229     -1127.22681     -1090.59778     -1073.34790     -1050.95386     -1031.17822      -568.90375       -25.33931       -13.07518       -25.69454       -20.04187       -25.44847       -22.13831       -25.38169       -20.42663       -23.37660       -15.97013       -13.71899     -2279.12549       -23.76318       -20.96467       -28.39981       -23.46905     -2126.06445     -1817.89294     -1618.90002     -1509.34241     -1443.40881     -1423.98010     -1472.89282     -1624.56079     -1820.41492     -2037.19128     -2337.84839     -2474.47534     -2119.35913     -1957.26819     -1837.61694     -1725.72278     -1623.68457     -1532.39270     -1473.77539     -1500.83838     -1578.43579     -1713.89331     -1926.57153     -2022.75159     -1750.50012     -1619.28467     -1533.44885     -1418.66650     -1347.52136      -601.90967     -1290.98450     -1300.18115     -1320.12671     -1355.70239      -788.11237      -791.18280     -1577.43677     -1485.07446     -1412.35815     -1312.20007     -1235.58862     -1173.48096     -1133.26941     -1095.86865     -1077.79919     -1056.18237     -1041.41223      -717.98035       -36.05493       -33.59808       -31.29138       -30.18948       -28.83608       -32.86607       -33.43318       -32.30896      -815.70294       -33.50549       -30.85274       -34.16665       -37.96537       -34.16573       -33.15070       -31.75107        -1.21837        -0.50372         5.01461         6.16563        -2.47524         4.71243        14.51748        12.10677        10.07418        -0.86324         0.50654         6.23916        10.75492         9.70490       196.41478       -14.65070         8.76074         8.03643        17.84802         8.88543         9.80848        -8.03455        14.52729        14.21726        22.35995         4.65907        15.16488        28.79955        16.25027         9.26618        23.18716        13.55530        25.32313        10.78286        21.89601      -448.63489         9.71746        13.95625        53.41992         4.75402       -19.16751       -13.99352        -8.40503        -5.59482     -2771.83130      -803.75403     -1283.10376     -2115.77612      -340.09958     -1251.94714     -2811.54492     -1621.81177     -1574.86511     -1581.65381     -1691.17529     -1874.99768     -2248.63062       -31.72383       -29.52199       -29.66106       -29.06753       -44.98470       -25.33625       -28.00013       313.12299       153.95444       444.97675        37.89709       334.32016        71.79270       364.59598        93.04185       364.20578        34.69311       455.85913       107.12646       348.20538       170.54715       373.18231        29.96502       387.67688       131.33981       437.97791       168.65778       306.33432         2.10341       365.29517       114.15323       187.77759        41.15797       431.10669       189.24045       436.82117         5.96315       349.20618       100.05830       363.49066        58.08431         6.51559        -9.21254       468.52170       237.67421         0.05802       -16.19978       -11.96410       -12.84208      -513.96924      -522.27783      -410.38052      -431.76660      -480.02658      -480.40561      -671.91425      -520.43915       -28.87009       -29.37345       -89.46363       -30.67665       -44.35790       -28.21251       -25.39827       -28.52839       -29.18549       -31.90306       -30.40494       -35.97178       -27.72765       -28.09389
     -2022.48816     -1804.97729     -1668.98877      -333.80670     -1488.99744     -1482.11841     -1540.66992     -1714.32031      -796.06049      -349.91852     -2474.92676     -2616.92554     -2154.32397     -1985.24280     -1804.04651      -448.14304     -1634.19470     -1541.61621     -1513.45032     -1564.57874     -1378.43713      -704.55499     -2034.61584     -2120.37964     -1802.51477     -1652.79602     -1560.49878     -1372.87280     -1439.79004     -1308.91870     -1327.80396     -1355.43494     -1667.50916     -1420.78259     -1459.49023     -1469.59326     -1551.54846      -534.06519     -1428.32092     -1333.83142     -1248.05005     -1023.65631     -1174.93213     -1140.80273     -1126.27856     -1117.85205     -1118.54041      -638.36829       -26.21416       -17.72390       -26.32117       -25.62413       -30.02233       -28.09710       -32.43646       -21.64716       -30.86772       -22.83943       -21.27926     -2368.39111       -30.72658       -27.59827       -34.78493       -29.86282     -2108.34570     -1836.43018     -1661.16809     -1570.71912     -1509.72388     -1498.71155     -1565.25061     -1738.40991     -1952.32422     -2191.66748     -2512.69629     -2659.16943     -2167.41650     -2002.44873     -1886.92761     -1757.03052     -1639.03174     -1541.55859     -1512.10999     -1579.77930     -1685.19971     -1841.67542     -2056.07886     -2157.45972     -1816.67847     -1668.72839     -1573.04163     -1452.55688     -1381.59082      -666.57813     -1338.20227     -1363.44739     -1399.14038     -1438.91248      -857.23676      -860.66638     -1626.60352     -1515.51404     -1435.12671     -1330.73340     -1262.38574     -1210.27014     -1184.91077     -1157.56177     -1145.94739     -1134.24060     -1120.94214      -766.44952       -36.38082       -30.63151       -28.72079       -27.94531       -26.82803       -30.38322       -32.22816       -31.31077      -918.64978       -33.41991       -30.20842       -33.69267       -39.32816       -35.61523       -34.58061       -33.98718        -2.56088        -1.52766         1.23014         4.13011        -5.24275         1.90685        12.27721        10.42950         8.46005        -2.12723        -1.10811         3.95311         8.74870         6.82042       195.29268       -16.47653         6.96277         8.07802        17.69681         8.77087         8.93334        -8.16194        14.39859        12.54706        19.15182         1.83173        11.69917        24.18902        11.06902         4.70041        18.60376         8.47105        20.69412         7.53440        19.50870      -450.89810         8.85328        14.10987        52.63000         3.89060       -19.29917       -13.54499        -9.13477        -5.75348     -2886.87793      -805.35712     -1233.19519     -2163.35352      -348.64627     -1285.24805     -2991.72827     -1666.20630     -1636.90222     -1652.39014     -1782.37952     -1992.11597     -2417.93140       -34.69589       -32.08954       -31.83438       -31.53724       -46.96086       -27.07973       -29.36304       308.58139       161.89996       402.74091        49.21186       349.21729        78.63994       366.95801        96.79710       366.40790        36.70929       458.04456       111.67682       365.15952       178.38512       374.12881        30.47377       389.39493       138.06917       436.19675       174.19191       320.18698         1.01515       371.28622       117.28442       189.94218        40.13771       437.66156       192.76662       468.55804         4.63305       349.97571        99.58543       356.77676        57.66248         7.23457        -6.52439       488.26901       242.00174         0.88414       -13.55326       -10.43058       -11.96241      -578.30078      -586.42920      -474.24649      -495.23184      -542.28973      -542.87982      -738.30444      -587.05255       -28.95191       -30.80392       -90.53248       -31.70498       -46.11932       -29.43937       -26.49343       -29.12223       -29.98515       -32.19965       -31.41525       -37.02609       -29.31246       -29.47884
     -2307.72021     -1980.95764     -1749.29028      -325.80017     -1455.45325     -1438.10376     -1488.29297     -1645.06421      -756.71613      -330.45392     -2320.71265     -2445.38208     -2135.01416     -1946.55591     -1731.03210      -425.59998     -1558.67725     -1474.95776     -1449.67285     -1504.83679     -1319.62830      -673.10443     -1928.37854     -2009.42224     -1780.42456     -1637.99512     -1548.05408     -1359.78650     -1429.99927     -1289.71082     -1299.43994     -1306.63660     -1592.01160     -1343.70605     -1378.61462     -1399.22083     -1533.44202      -568.46991     -1417.02429     -1319.64575     -1232.98914     -1004.80597     -1146.15125     -1107.02356     -1085.86670     -1069.98840     -1067.69189      -663.48291       -25.51730       -12.13069       -25.50630       -18.45649       -24.66490       -21.24388       -25.90862       -20.79448       -24.91896       -16.35111       -14.61051     -2448.62646       -23.55320       -19.44831       -26.69953       -21.47962     -2421.73950     -2034.82141     -1745.15930     -1560.93066     -1480.38477     -1459.27490     -1515.59326     -1672.18408     -1872.54651     -2086.65796     -2355.38989     -2487.08691     -2138.70239     -1963.00793     -1828.86011     -1670.43530     -1556.77148     -1478.95618     -1458.63281     -1537.53406     -1633.23901     -1758.44153     -1948.78674     -2042.58411     -1793.81165     -1649.80798     -1559.06335     -1441.08093     -1366.43567      -728.35016     -1304.60815     -1316.49548     -1338.47021     -1370.58032      -918.85815      -922.23627     -1601.25745     -1499.04346     -1420.57983     -1318.13953     -1247.54077     -1194.49280     -1159.36487     -1121.53308     -1100.83887     -1095.74622     -1098.60303      -771.20850       -35.48003       -33.76982       -32.71690       -32.83538       -32.11644       -36.32253       -37.72548       -36.87970     -1006.34283       -37.67460       -34.25767       -37.08092       -41.58942       -36.77753       -35.45481       -33.48844        -3.03797        -2.17095         2.75194         5.14738        -3.36528         4.15903        15.58832        12.92606        11.91856         0.53805         1.44947         7.29746        12.49757        12.32803       196.77487       -10.19647        13.87724        14.21200        22.52394        14.10775        14.39332        -0.92434        21.97198        20.88502        29.95926        11.87790        21.69409        34.86938        24.13271        15.95776        28.80121        19.10342        30.93846        17.16505        26.90562      -443.97565        16.03119        19.03059        57.57591         7.66180       -16.19541       -10.58448        -6.63743        -3.92592     -2937.31494      -839.62518     -1316.95825     -2225.16382      -350.72409     -1285.66199     -2747.27368     -1655.20898     -1607.73340     -1606.94690     -1707.93860     -1880.98572     -2239.57617       -33.32500       -31.49893       -31.62461       -32.21618       -48.50143       -29.36221       -31.86218       293.98132       154.68658       424.12973        36.93425       331.61386        71.63445       359.97427        84.98016       353.43921        29.32407       434.63220       102.52132       331.68158       164.82629       355.95728        22.52311       383.41275       123.65643       404.02835       159.73506       277.05627        -3.31735       362.99945       106.47289       187.06186        36.69124       403.97476       179.47614       459.21951         3.39018       340.25629        95.72845       345.53363        55.62069         4.74373        -7.92756       492.62772       230.73955        -0.47506       -13.59731       -10.49143       -12.21590      -633.94879      -641.91486      -532.80695      -553.55658      -598.19110      -598.65576      -795.26587      -644.03772       -30.23371       -31.35335       -90.84853       -31.88811       -45.71902       -29.07088       -26.09259       -29.14725       -29.98324       -32.69972       -31.57618       -36.96146       -29.01257       -28.63465
     -1997.89038     -1829.95239     -1715.37634      -340.84137     -1532.92456     -1526.59656     -1595.25537     -1795.05139      -831.80304      -363.99896     -2638.44922     -2798.43384     -2242.22998     -2106.15942     -1938.47229      -455.41891     -1613.81360     -1537.59094     -1545.48425     -1622.61938     -1422.27490      -730.34119     -2140.84888     -2233.53638     -1842.82263     -1687.37000     -1590.93237     -1400.83875     -1464.59204     -1338.46118     -1359.93726     -1390.06702     -1727.81921     -1473.21143     -1519.01306     -1525.37830     -1593.50366      -612.70050     -1456.93811     -1352.94824     -1264.21606     -1031.65198     -1189.29932     -1165.57129     -1152.81787     -1143.01111     -1150.63831      -682.12622       -27.09445       -17.84596       -26.95369       -24.67550       -29.69736       -26.80604       -30.95097       -22.02064       -28.77325       -20.22020       -18.21989     -2560.87451       -27.66822       -23.78748       -31.06174       -25.63823     -2044.49829     -1848.31812     -1701.01282     -1614.60266     -1549.40393     -1542.45703     -1617.35229     -1815.95398     -2057.60522     -2320.28589     -2677.05420     -2838.93848     -2241.68164     -2121.68262     -2042.42529     -1825.45056     -1627.09460     -1536.40747     -1543.75513     -1638.91748     -1746.63440     -1919.00916     -2153.71533     -2262.08691     -1856.59912     -1703.36780     -1604.20398     -1479.65564     -1408.32422      -810.62750     -1365.94116     -1395.04089     -1436.62390     -1489.11890     -1000.06305     -1006.98120     -1668.01746     -1550.75110     -1465.79590     -1354.64746     -1282.42493     -1227.00964     -1200.06726     -1171.23523     -1158.97644     -1151.97119     -1145.71790      -763.08673       -36.54825       -39.16092       -36.78039       -35.65778       -35.33524       -37.53360       -38.58052       -38.04926     -1132.94250       -39.71786       -36.33213       -38.90782       -43.52898       -38.11074       -36.45164       -34.14883        -3.38298        -3.78323         1.53547         2.44005        -6.08904         0.52717        12.32098         9.57372         8.99194        -2.18855         0.72657         6.40288        11.85649        12.05968       194.94763       -11.06593         9.48479        12.61554        22.49449        12.96545        15.79143        -3.37866        18.16807        16.50172        22.18361         6.59202        16.82391        29.43593        15.87351         9.82084        24.13047        13.89458        25.19478        13.86167        24.81824      -445.93744        13.67992        18.46656        54.54425         7.73130       -14.59403        -9.42680        -4.59410        -1.54678     -2848.99146      -777.98334     -1166.25024     -2121.82813      -347.87610     -1300.00793     -3232.03613     -1692.56787     -1677.04504     -1700.95996     -1852.25281     -2092.98682     -2582.70288       -32.45292       -30.69091       -30.47059       -30.85591       -46.54082       -27.36854       -30.01768       320.87399       156.18484       398.83063        44.82257       360.60901        75.21066       357.10529        92.67645       368.66586        30.11714       455.98541       106.58247       384.21570       174.41789       363.23462        24.54259       371.45163       127.89512       445.36450       165.60094       339.74164        -2.92158       364.08405       112.32993       172.08220        37.98265       445.88971       185.76674       454.29111         5.10663       352.44574        99.87670       346.58066        57.93119         8.08069        -6.70842       470.74612       240.53682         0.86486       -11.83411        -7.71198       -10.33357      -714.02539      -721.75348      -610.64746      -630.85785      -671.11609      -671.45331      -874.37067      -723.21808       -31.30627       -32.58539       -92.07872       -32.89531       -46.40938       -28.84909       -25.60851       -29.53866       -31.04545       -34.41462       -34.43177       -39.56926       -32.36092       -31.74648
     -2007.13306     -1844.60742     -1725.03735      -341.16888     -1530.55786     -1525.28564     -1598.22339     -1817.07397      -849.41046      -376.58670     -2735.19043     -2908.60229     -2363.63232     -2231.18872     -1940.97363      -422.87802     -1487.74683     -1458.63745     -1507.38464     -1630.66858     -1434.32092      -742.25336     -2194.87256     -2294.90430     -1842.00195     -1685.92053     -1591.70325     -1413.65063     -1477.30237     -1345.89001     -1375.77942     -1413.07507     -1761.54773     -1496.40515     -1537.91113     -1536.42883     -1612.66223      -625.58325     -1465.81970     -1355.39539     -1262.80176     -1028.32410     -1184.71912     -1167.12158     -1162.11804     -1149.77271     -1153.40649      -675.31366       -26.51469       -19.71944       -26.63823       -25.60934       -30.31562       -25.90181       -28.94171       -22.44503       -25.63943       -18.35056       -14.68302     -2619.43677       -24.25531       -20.86258       -28.88651       -23.58554     -2054.19434     -1873.15588     -1715.43066     -1621.53552     -1556.90369     -1551.57019     -1636.37915     -1859.34021     -2124.17627     -2413.31323     -2790.52466     -2962.04468     -2381.16235     -2267.61865     -2056.50244     -1678.67786     -1508.81763     -1470.43811     -1518.50476     -1664.09790     -1791.95850     -1960.11133     -2224.48486     -2339.86230     -1860.55176     -1706.64368     -1609.72864     -1493.30859     -1422.61548      -850.38037     -1388.97217     -1423.30652     -1466.07520     -1523.67090     -1039.15295     -1046.97522     -1686.56055     -1563.26782     -1473.81531     -1358.25061     -1281.80017     -1228.45264     -1201.42981     -1176.54956     -1163.43433     -1161.99390     -1159.79565      -740.46259       -36.95969       -38.49755       -36.03112       -35.05709       -35.37811       -38.32480       -40.27406       -39.41761     -1202.96313       -40.62756       -36.73932       -38.41939       -43.10185       -37.26964       -34.75774       -33.15744        -3.83185        -2.54204         0.48708         3.80300        -5.33986         1.56438        12.23229         9.79078         8.07217        -3.79386        -0.97157         3.91319        11.19170         8.65777       191.57037       -14.13607         6.49372        10.30252        21.15540        11.95388        15.08972        -4.12120        16.89515        16.17602        20.31004         5.29211        15.30823        27.53729        14.63013         8.65643        23.31635        13.56766        24.33120        12.75502        24.74308      -446.53070        11.90403        16.82826        50.54465         6.72354       -16.34212       -10.64268        -5.25160        -2.32755     -2798.04224      -744.15637     -1087.79797     -2047.35974      -341.99060     -1281.47766     -3430.48608     -1681.14624     -1679.13501     -1709.23206     -1880.69702     -2144.88647     -2705.71509       -32.39974       -31.10453       -30.98111       -31.43440       -47.68090       -28.11248       -29.15714       333.75507       162.09830       406.47174        52.37696       379.77786        81.23277       364.30890        97.33627       374.54477        34.28648       467.14667       112.59846       419.45529       183.70985       348.07443        24.50980       366.49191       128.28667       456.17245       164.51405       353.75534        -6.57193       354.90341       103.68030       160.49506        32.83701       459.72119       181.96986       444.70929         2.10189       340.99203        89.09836       332.25809        53.50744         6.45381        -9.29078       458.59811       232.54395        -1.01316       -13.74320        -9.86868       -11.60650      -753.62939      -760.82281      -647.06531      -666.89771      -704.14661      -704.48846      -912.28656      -761.34180       -27.29276       -27.83783       -88.05449       -28.70792       -41.15013       -24.62767       -21.38328       -27.99501       -24.74833       -27.13441       -26.90770       -32.72073       -25.59666       -26.59418
     -1995.88794     -1825.53088     -1700.67139      -334.01666     -1496.62073     -1494.24402     -1574.42163     -1808.89917      -853.41058      -380.52545     -2800.64624     -2978.86304     -2452.14404     -2203.66821     -1763.10364      -385.28830     -1419.99121     -1409.69910     -1460.83105     -1593.78687     -1438.04614      -732.50250     -2188.73999     -2301.49536     -1827.78357     -1671.67468     -1582.20068     -1396.93164     -1473.08777     -1324.90430     -1353.70874     -1408.69263     -1744.96387     -1497.98376     -1535.28638     -1531.96252     -1622.26648      -636.42426     -1458.56836     -1343.15466     -1251.42676     -1018.95148     -1172.88818     -1152.86951     -1144.66138     -1133.23901     -1138.33459      -672.74615       -26.80922       -18.26616       -26.66617       -26.57058       -31.93653       -28.97481       -33.92063       -22.29685       -31.07166       -21.74796       -18.32827     -2666.75977       -27.89901       -23.88461       -31.72083       -26.52672     -2038.58411     -1854.03833     -1691.57947     -1590.43250     -1527.57300     -1524.62061     -1616.65601     -1856.05713     -2141.61401     -2454.69263     -2851.39600     -3027.29102     -2461.97485     -2229.90015     -1888.32104     -1533.92249     -1441.82556     -1426.19385     -1479.79822     -1636.06335     -1785.62915     -1962.94824     -2233.88550     -2359.63794     -1843.11377     -1687.41101     -1595.32043     -1489.08838     -1412.00232      -880.89331     -1375.38757     -1422.00330     -1470.52893     -1529.28259     -1068.81799     -1077.16382     -1690.96375     -1556.26550     -1460.00330     -1341.97827     -1270.14172     -1220.46570     -1196.28113     -1174.07581     -1158.11340     -1147.07410     -1147.53577      -722.56787       -37.93102       -36.83667       -34.47158       -33.32563       -33.76302       -37.28304       -38.72375       -38.37973     -1259.86523       -40.21911       -36.48458       -38.33370       -42.80508       -37.61880       -36.30238       -34.82722        -7.66422        -7.12562        -4.44307        -1.67671        -9.56500        -2.24941         9.05313         7.12201         5.42117        -5.64426        -4.44787         0.36036         7.81324         5.68644       187.73425       -15.84073         3.08044         7.61311        17.95369         8.53918        10.65255        -7.87173        13.03914        12.24746        16.91790         3.28768        13.92201        26.37796        13.15275         7.51447        21.57030        10.54961        20.82621         8.75609        20.84009      -449.58838         7.08298        12.52014        45.84637         3.10332       -20.07265       -13.49873        -9.10737        -5.34442     -2740.58252      -707.44550     -1007.90118     -1949.63855      -332.14737     -1235.98242     -3573.46753     -1642.06299     -1651.37451     -1670.05847     -1844.93018     -2123.52490     -2766.75757       -31.00109       -29.63754       -29.25421       -30.42456       -46.27596       -26.95798       -29.49496       331.32599       154.64308       391.12686        45.94249       378.74710        74.94404       352.19199        90.89719       355.79376        30.29566       450.78140       107.59115       430.86145       178.97679       334.46341        24.88446       350.14120       127.33749       458.45712       162.81183       355.57153        -1.90049       342.14529       108.79749       156.97916        38.06521       466.77304       184.11740       437.40448         6.41577       345.02771        99.29459       320.07144        58.71720        10.74885        -5.72200       456.44208       240.23364         1.90842       -10.88670        -6.71880        -8.72948      -786.23694      -793.54407      -680.32477      -699.85883      -734.33075      -734.67719      -945.99652      -795.03296       -30.38278       -31.22902       -91.66077       -31.98667       -45.55091       -29.28583       -26.50969       -29.08478       -30.48198       -33.19994       -32.66838       -38.05538       -30.61731       -30.54541
     -2036.20642     -1853.76001     -1715.64063      -335.39673     -1481.87634     -1473.96826     -1554.68921     -1804.81067      -862.39398      -388.59930     -2842.83081     -3025.06055     -2449.89380     -2139.32422     -1705.05981      -386.42719     -1419.00354     -1403.18323     -1459.39258     -1600.24133     -1449.33228      -739.48120     -2210.45654     -2323.64526     -1860.63501     -1691.20374     -1593.65198     -1391.93616     -1472.77368     -1317.93298     -1351.97217     -1411.19946     -1752.03455     -1511.55615     -1551.48511     -1538.80957     -1646.44312      -658.89478     -1462.39075     -1342.66846     -1252.64636     -1022.00684     -1182.33972     -1167.18591     -1156.96423     -1142.87756     -1150.66663      -683.47321       -27.41626       -18.96532       -26.91032       -24.57524       -30.41183       -25.86338       -29.78969       -22.77785       -28.84127       -20.54614       -17.81595     -2719.89038       -27.52047       -23.18704       -30.31950       -24.04362     -2082.10864     -1879.46924     -1707.19617     -1587.56384     -1512.45801     -1505.19019     -1596.67188     -1850.72253     -2155.45728     -2487.19360     -2900.06543     -3081.19556     -2470.39136     -2191.75879     -1832.69385     -1509.75122     -1434.39709     -1418.18213     -1472.94739     -1631.21631     -1784.08923     -1966.74646     -2242.68335     -2368.50317     -1875.30286     -1706.99658     -1605.13538     -1483.21753     -1404.03491      -918.01379     -1371.73792     -1426.39746     -1478.87012     -1537.56726     -1101.39636     -1112.50464     -1719.10596     -1570.35962     -1467.91309     -1343.85486     -1267.25012     -1220.33435     -1202.66113     -1187.95129     -1176.75952     -1173.76135     -1177.69263      -714.69879       -35.74917       -33.78582       -31.36721       -29.40730       -29.49097       -32.15265       -33.23074       -32.44432     -1316.86389       -35.50258       -32.54853       -34.53885       -39.49610       -33.36188       -31.20415       -29.80471        -2.27731        -3.32495         0.39910         2.57716        -6.50745        -0.67505         9.14258         8.03196         4.31212        -5.77401        -3.73103         1.30138         8.43363         5.84028       188.53873       -15.96861         2.82837         7.11628        17.88921         9.04681        12.07669        -7.16818        13.65794        13.46285        17.63254         2.70853        12.67705        25.16837        11.70422         5.80833        21.31515        10.28392        19.40227         8.49422        20.66300      -449.95135         6.86385        12.54926        44.91471         3.90233       -18.39481       -11.49499        -6.59798        -4.35827     -2774.39185      -719.52563      -949.39789     -2003.29480      -344.41428     -1274.56677     -3652.48364     -1642.12097     -1630.32983     -1602.21924     -1782.19202     -2060.56494     -2785.68994       -33.33085       -31.37074       -30.43678       -30.75988       -46.75779       -27.31588       -29.61110       334.65219       158.31076       391.94818        51.18323       386.23840        78.76915       357.31796        98.10505       365.80621        32.58087       455.39029       112.55932       427.63278       184.88249       338.82489        25.03732       356.17532       130.69594       464.38309       168.35597       359.17844        -0.56037       349.67032       111.11558       161.22707        39.90877       470.97769       188.98770       446.69531         7.43164       351.52155       100.08749       321.43500        61.09312        14.53710        -2.25801       462.76392       241.77824         4.47076        -7.43759        -3.52094        -5.59202      -829.24005      -836.80084      -721.75604      -741.35272      -773.35565      -773.73694      -989.54016      -838.55182       -27.39421       -28.74092       -89.54806       -30.96815       -46.21746       -30.63520       -28.48063       -28.30708       -31.97986       -34.58230       -33.48936       -38.40049       -30.44694       -30.38838
     -2041.56958     -1866.12097     -1736.96533      -342.97528     -1519.42676     -1509.78442     -1591.76196     -1831.17407      -860.23273      -381.90073     -2800.12769     -2976.33350     -2426.57690     -2213.94946     -1825.26978      -401.58386     -1456.98328     -1437.63074     -1495.07593     -1637.17896     -1461.60474      -747.51410     -2224.66455     -2327.63745     -1869.41870     -1704.22180     -1604.87573     -1410.00073     -1483.54187     -1341.73706     -1382.40100     -1427.86804     -1779.81934     -1517.81226     -1552.39941     -1538.69666     -1640.69714      -672.13531     -1467.74207     -1350.14063     -1261.36438     -1030.52563     -1193.52820     -1179.99304     -1174.75562     -1171.43274     -1185.03979      -692.89319       -27.70527       -14.39314       -27.34645       -20.63954       -27.03235       -22.85117       -27.20195       -21.98052       -26.37839       -17.39316       -15.14193     -2760.77148       -25.31970       -21.33210       -29.06623       -24.16648     -2096.72949     -1900.85046     -1731.19995     -1622.14050     -1552.69446     -1546.42834     -1631.70398     -1864.94666     -2145.88550     -2453.86328     -2848.72607     -3026.92188     -2434.52441     -2273.55249     -1945.48682     -1579.44434     -1471.10620     -1448.49512     -1501.92065     -1652.99792     -1790.06604     -1972.51160     -2240.36597     -2358.91968     -1882.87244     -1717.23035     -1613.25952     -1492.48413     -1419.58044      -947.49115     -1381.74341     -1421.93701     -1469.01550     -1525.41626     -1128.66650     -1140.14111     -1705.79016     -1565.90869     -1466.64087     -1344.63147     -1274.68335     -1227.10681     -1205.29590     -1181.22583     -1171.57727     -1172.51843     -1182.26001      -706.74414       -35.57745       -30.36152       -28.30980       -26.66539       -27.23166       -30.16664       -30.85542       -30.06231     -1366.04175       -31.35934       -28.92267       -31.65111       -36.80112       -31.59970       -31.07119       -28.97146         1.12976         0.66833         2.47760         5.14281        -3.96402         1.63547        10.41536         8.20547         4.18222        -6.10247        -4.66758        -0.43699         6.74972         4.72490       185.23607       -18.42312         0.76293         3.77628        13.36369         3.86949         6.14768       -13.53418         7.05679         7.24179        11.21938        -2.18553         8.76303        21.89795         9.36876         3.25787        17.56077         6.70606        15.58417         4.12610        16.21986      -454.12610         4.42666        10.36772        42.87038         1.30067       -21.37815       -13.26138        -7.60149        -4.76212     -2834.39551      -747.27545     -1029.42297     -2043.14673      -343.91827     -1287.80066     -3515.24292     -1689.57190     -1678.58630     -1679.38989     -1839.57324     -2110.97656     -2745.14624       -29.93885       -28.62178       -28.32777       -30.02283       -45.83555       -26.77908       -29.63474       334.17941       158.49323       393.37442        50.81781       382.66806        78.15609       356.40811        94.59810       367.74588        35.19197       453.62228       113.21387       422.55145       184.01067       347.29623        29.46489       358.23825       129.73790       458.59979       167.42969       363.85492         0.43175       357.17892       116.47838       164.62090        41.11759       461.19553       189.68944       455.61517         6.18835       353.50562       100.91006       333.08572        56.66969         7.97745        -8.19668       475.58499       243.53242        -0.01364       -14.62250       -11.15642       -13.35611      -861.75244      -868.95923      -755.33160      -774.14905      -802.56232      -802.54718     -1019.30731      -868.23236       -34.10410       -33.92000       -93.43708       -33.15931       -46.22308       -30.98965       -28.74619       -30.30811       -33.84431       -36.84958       -36.05899       -41.47142       -33.55478       -33.53484
     -2044.05029     -1874.24658     -1753.56238      -344.55679     -1548.26807     -1537.96228     -1614.15186     -1827.59106      -848.11151      -372.18784     -2728.20728     -2895.51196     -2333.26904     -2201.76563     -1940.71973      -430.53357     -1533.35742     -1494.04016     -1535.29138     -1650.92700     -1447.35815      -745.01569     -2198.49390     -2294.05469     -1877.62341     -1712.49963     -1610.98474     -1416.15247     -1484.98999     -1354.80188     -1380.19714     -1417.99792     -1768.79358     -1499.10657     -1539.92383     -1538.43738     -1627.81335      -685.59833     -1468.94946     -1357.67725     -1269.02063     -1036.95361     -1199.63635     -1180.92639     -1176.68213     -1182.89368     -1192.87964      -703.55219       -28.46478       -18.55551       -27.56207       -25.68045       -31.50267       -27.17359       -31.80482       -22.90358       -30.86078       -21.67756       -19.95270     -2793.71777       -29.67454       -25.05445       -32.34329       -26.34285     -2084.72363     -1903.25000     -1742.49255     -1643.00378     -1574.70325     -1565.29492     -1646.32666     -1858.94629     -2116.52417     -2398.13062     -2771.02124     -2940.83813     -2321.58398     -2255.87500     -2080.50977     -1709.81567     -1536.81934     -1494.32495     -1537.66272     -1667.09937     -1787.19836     -1967.31714     -2213.67676     -2326.91479     -1883.71790     -1719.85095     -1614.98291     -1487.76587     -1423.15686      -973.24988     -1388.67273     -1425.05493     -1470.48975     -1519.32520     -1153.08936     -1164.12317     -1689.86133     -1559.11035     -1464.66626     -1349.00012     -1281.19336     -1236.68860     -1216.97913     -1198.59583     -1190.11572     -1194.21594     -1195.19360      -700.83203       -35.22795       -31.41030       -28.51716       -26.16163       -26.09453       -27.65639       -29.08159       -27.74390     -1404.30811       -30.75146       -28.28911       -30.75953       -36.06808       -31.38087       -30.58889       -28.88135        -1.43619        -0.49893         2.20837         4.29130        -5.03556         1.78645        12.97399         9.72287         8.12029        -3.31739        -1.28431         2.83719         9.15190         7.32663       188.73941       -14.68685         4.87978         9.28675        19.92160        11.14831        13.47063        -4.62125        16.84170        16.52016        20.65520         6.25000        16.11365        29.82967        16.41661         9.72901        24.75415        14.40827        23.40155        12.17627        23.11210      -447.76587        10.16479        15.11196        49.60379         5.84586       -18.51640       -12.07370        -6.90609        -3.96660     -2900.30957      -780.30383     -1115.23657     -2101.27734      -346.85382     -1302.39172     -3337.96997     -1710.88062     -1705.71265     -1724.71521     -1873.40723     -2120.02710     -2663.47827       -36.35366       -36.19470       -37.19218       -38.95719       -54.88852       -35.77008       -37.57668       327.04065       163.48294       405.60553        52.45276       371.90286        81.17838       361.04834        88.27115       367.64291        30.00038       462.30011       110.78309       397.79492       180.61830       351.35690        27.46801       359.22910       125.37628       450.36221       165.78400       354.65930         1.38786       356.51923       115.19148       174.09756        44.00995       458.28232       191.16124       473.33249        10.34712       351.89786       110.56548       349.10831        64.45927        14.06939        -2.12165       486.69318       248.05441         4.31337        -9.23058        -7.03319        -8.32244      -889.67273      -896.97870      -784.90710      -803.71021      -827.94305      -828.03662     -1047.58960      -896.70105       -32.54947       -33.66058       -94.06088       -34.72488       -47.69772       -31.32760       -28.57071       -29.71464       -31.05145       -32.89411       -32.15267       -36.49934       -28.87023       -28.34809
     -2021.46448     -1846.77490     -1731.88220      -341.07141     -1542.61597     -1533.84167     -1604.54333     -1798.93591      -830.49487      -364.30365     -2630.06299     -2781.89160     -2230.47583     -2076.42749     -1901.67456      -451.30634     -1629.11194     -1546.52869     -1546.04248     -1619.14307     -1429.75549      -728.31445     -2136.57813     -2227.09326     -1862.53418     -1698.61340     -1599.30896     -1402.26111     -1471.11426     -1342.72156     -1369.74072     -1403.40369     -1745.70398     -1478.05493     -1516.72339     -1521.26746     -1602.69348      -693.97284     -1455.39807     -1352.92297     -1271.56775     -1042.35083     -1208.08057     -1184.21033     -1179.07593     -1175.73059     -1185.18835      -710.95734       -28.70827       -23.80395       -27.66370       -31.31474       -36.02188       -32.37510       -37.26239       -23.02916       -35.40326       -25.95920       -22.83634     -2819.41943       -30.82710       -25.83962       -33.11171       -27.92711     -2045.84973     -1858.98547     -1716.98755     -1629.37378     -1566.35510     -1557.71936     -1629.54895     -1821.95996     -2054.01270     -2313.55518     -2662.40234     -2819.25269     -2232.36938     -2098.02686     -2031.03247     -1825.81714     -1632.30713     -1544.08508     -1550.58838     -1642.51978     -1755.53625     -1928.04248     -2148.78662     -2253.44727     -1872.42603     -1711.00513     -1608.65051     -1481.71045     -1411.68054      -993.75604     -1375.79614     -1408.11292     -1447.08655     -1489.79639     -1175.92896     -1185.27075     -1671.98657     -1544.59021     -1457.38220     -1346.62488     -1282.04456     -1239.54919     -1219.24731     -1190.36438     -1181.69861     -1193.99609     -1195.38123      -695.79681       -37.29976       -35.54704       -32.82365       -31.38041       -32.51611       -34.77611       -35.57325       -34.57209     -1437.91699       -35.26107       -31.30283       -33.62973       -38.98320       -32.08263       -30.77935       -29.96028        -2.39561        -1.09823         2.80615         5.12121        -4.54626         4.23072        13.52718        11.01003         8.24608        -3.88983        -3.18985         1.83745         5.91067         4.73464       183.93187       -17.73215         2.22742         5.08597        14.71903         5.71081         6.44340       -10.14465        11.62782        11.45173        17.42806         2.58513        12.47890        26.16908        12.44390         6.10872        19.29043        10.10649        20.48034         8.83612        19.66274      -451.16714         6.26556        10.61426        47.25503         0.49286       -24.15263       -17.13089       -11.32987        -7.01300     -2959.24438      -810.12714     -1193.31116     -2163.65942      -352.23010     -1308.14258     -3152.33569     -1708.42859     -1695.00989     -1716.07336     -1853.89478     -2078.47290     -2549.04395       -32.60905       -31.89644       -31.08977       -31.79368       -47.17645       -27.43475       -28.22805       314.50369       161.63786       409.55054        51.99660       355.64871        80.73286       374.09363       103.91697       377.88782        37.90170       457.94519       115.69681       374.26776       182.55562       379.62656        28.70530       400.87277       139.73082       446.63562       176.17429       333.78012        -2.74035       370.51230       111.47770       181.40784        38.34985       437.07968       191.60959       473.71634         3.66026       347.22696        92.97252       349.65552        55.59957         5.41134        -8.50226       483.53009       240.55019        -0.65681       -12.32153        -8.92280       -10.53326      -911.78772      -919.12695      -808.40546      -826.69897      -849.63507      -849.58655     -1067.99622      -917.07959       -30.87000       -31.17540       -91.15778       -31.53193       -44.54169       -28.74119       -26.54097       -29.41321       -31.36158       -33.90479       -33.83696       -39.12016       -32.46915       -32.19199
     -1944.04590     -1798.79285     -1692.40125      -337.77542     -1512.27783     -1503.45020     -1574.94812     -1774.39258      -823.59460      -363.36548     -2616.60449     -2777.15771     -2292.82886     -2223.44653     -1990.73401      -438.28864     -1525.58350     -1459.01831     -1494.31287     -1604.10608     -1409.99500      -716.50525     -2117.35791     -2215.85107     -1805.95752     -1660.98169     -1572.18298     -1406.70667     -1464.62061     -1340.67322     -1363.67798     -1389.84546     -1718.62329     -1462.28333     -1508.95691     -1508.90503     -1578.12866      -704.23676     -1451.38721     -1350.88269     -1258.95728     -1018.84143     -1170.48694     -1147.91699     -1136.94153     -1121.84766     -1118.00073      -719.50830       -28.12475       -13.52531       -27.43947       -20.21058       -26.47091       -22.82601       -27.91583       -22.03928       -27.54109       -17.62778       -15.88190     -2848.03833       -24.88740       -20.23535       -28.09671       -22.92854     -1986.07080     -1817.79272     -1680.05469     -1598.15906     -1535.41455     -1526.97852     -1603.11926     -1803.58472     -2047.05164     -2311.04810     -2668.94116     -2832.59619     -2272.06006     -2211.20337     -2102.34033     -1780.77502     -1549.23413     -1476.76001     -1507.17285     -1626.36304     -1737.56201     -1897.88184     -2145.17651     -2257.54395     -1821.48999     -1677.24829     -1584.27551     -1471.20081     -1412.15710     -1021.41644     -1368.17126     -1389.71643     -1427.77319     -1480.44165     -1203.62341     -1210.20239     -1645.59766     -1533.25488     -1453.72400     -1349.14404     -1273.53418     -1216.25134     -1186.58691     -1156.47400     -1143.20264     -1137.28650     -1130.59143      -690.75403       -38.31901       -35.50478       -32.98839       -30.66513       -32.19730       -33.96674       -34.28755       -32.94947     -1469.67151       -35.57635       -31.97451       -34.63821       -39.67552       -33.22134       -31.50870       -30.31546        -2.20026        -0.96694         1.81497         2.75244        -6.84716         0.57058        12.37257         8.07944         7.36149        -4.75287        -2.12027         2.18933         8.59588         7.95085       185.64053       -14.53075         5.52055         9.46152        19.04214         9.57970        11.16329        -7.53714        13.51414        12.39298        16.51398         1.24684        11.78748        25.09919        11.49079         5.44707        21.52506        10.68993        20.53144         9.25485        19.76462      -451.53522         5.51608        12.16149        48.51835         2.69398       -20.28319       -14.15708        -9.83523        -5.64322     -2743.65430      -743.59760     -1135.35681     -2045.78149      -338.67215     -1264.70300     -3298.91699     -1658.68469     -1647.89746     -1676.11475     -1837.79639     -2086.40942     -2601.94165       -35.94060       -33.97522       -32.64518       -33.17886       -48.56894       -28.76739       -31.35899       313.85648       151.29984       393.98306        41.39148       357.01157        71.43159       359.91476        91.91969       361.39322        32.58727       453.05814       105.71888       397.20084       174.15363       347.46957        27.16652       361.68707       126.12959       443.72156       163.40652       350.05225         1.11630       349.86508       109.80293       170.06464        39.24589       456.80844       185.13890       438.36740         5.25521       340.64310        97.98204       343.17358        57.18432         9.35590        -6.16716       456.74130       238.13988         0.45130       -13.17045       -10.32212       -11.27643      -937.34967      -944.64105      -839.78387      -858.28003      -880.09454      -880.02118     -1094.89539      -943.72760       -31.75211       -32.50751       -92.78443       -33.93765       -47.70605       -31.92393       -29.53287       -30.38251       -33.59724       -36.76710       -36.34792       -41.62233       -34.84238       -34.68575
Sorry everyone  I did say it was large!!!

Basically in amongst all the data are discreet values that I need to extract each time.  For example I may need, the 30th-40th values on the 3rd line of the dataset each time.  This is the data I ned to hook.

Basically the first line is a header and can be scrapped.  The p1...... numbers on the following line is also rubbish.  I guess I want the subsequent values to be held in 18 arrays (or how ever many lines are remaining)  

Thanks in advance...
If you just see 10 lines from hex view, You can understand by your self, New line character will be 0A & 0D
Have you tried accesing this data with ADO?
Well, there is a simple solution I have that may suit your needs.  How about simply reading the text file as a text file while forcing your data to be a simple comma delimited list...

For this example, I created a simple form with a Text Box called txtData.  Notice that the caption lists the number of lines read, and the textbox is filled with a comma delimited list of your entire text file (the sample I used was what you pasted).  See if this works for you...

Jiggle On !

********************************************
Option Explicit

Private Sub Form_Load()
  Dim FileName As String
  Dim FileNumb As String
  Dim LineData As String
  Dim LineNumb As Integer

  FileName = "C:\Documents and Settings\JigglyD\Desktop\Sample Data.txt"
  FileNumb = FreeFile
  LineNumb = 0
 
  Caption = "Processing " & FileName
  txtData.Text = ""
  Open FileName For Input As #FileNumb
  Do While Not EOF(FileNumb)
     Line Input #FileNumb, LineData
     If InStr(1, LineData, "* * *") = 0 Then
        LineNumb = LineNumb + 1
        LineData = Trim(LineData)
        LineData = Replace(LineData, Space(5), ",")
        LineData = Replace(LineData, ",,", "")
        LineData = Replace(LineData, " ", "")
        txtData.Text = txtData.Text & IIf(txtData.Text = "", "", vbCrLf) _
                                    & LineData
     End If
  Loop
  Close #FileNumb

  Caption = "Processed " & FileName & "   >>>   " & LineNumb & " Lines"
End Sub

Private Sub Form_Resize()
  txtData.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
End Sub
********************************************
It says processed >>> 0 lines ????????

I tried it with another text file and it looks like it works with that??  I really do not understand this at all...
SOLUTION
Avatar of Shauli
Shauli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Label 1 displays -1 and the program crashes at this line...

Label2.Caption = Label2.Caption & myArray(sLoop) & vbNewLine


...saying

Run Time Error '9':

Subscript Out of Range

Sorry!!!!!
Are you sure the file you are using contains data? It doesn't :)
I just verified that. Check the fielname and path.

S
Just to make myself clear:
The errors you get is because C:\Code Projects\Cooling\Data\003_7360_p1_p256.txt
IS EMPTY

S
I have just double clicked on the file.  Opened it in wordpad saved it in a different name, opened it in word and excel.  In all packages I can see the data.  In all packages it is cleary spaed over 19 lines.  It is now called test.txt and is not empty!

I have used you code again and I get the same error.
Well then, sorry I waisted your time.

S
OK, last try.  I think I have found the problem.  If I just read the code in using the line input method I used right at the beginning it only says there is one line.  If I open this code up in word it spaces it properly as does excel (puts it into 19 rows)  However, in wordpad where the line spacing should be it just displays a square character.  If I delete this, put in a carraige return and save, visual basic recognises more than one line... when I open it in word and excel again, the formatting is no different to before.

It looks as though the machine that creates the data file uses a symbol for carriage return that VB doesnt like but word and excel can deal with.  Does this make sense to anyone????
If the file is not empty then it is not a plain text file. The symbol you are talking about is not the only one. Thes can be a good reason why my code above failed.
I saved your example in a plain text file, using a true txt editor. Word, Excel and all hte rest of them use special characters, hidden in the file, not displayed while you open the file, to format the text.
Check with whoever created the file, with what it was created.

S
Or, if the ORIGINAL file is plain text then DONT save it in word, or wordpad or any other rich text editor, becuase you screw up the original txt file.

S
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Instead of having the lines go accross the text file why dont you write and .ini file and read the [data] below  it and do that for each line that goes accross

example:
2.53591       833.67883         1.11627         4.93443         1.29652        -2.92428         1.15117         3.16735         4.13470

[data1]
a=2.53591
b=833.67883
c=4.93443
d=-2.92428
e=1.15117
f=3.16735
g=4.13470

This would be easier than trying to read 40 characters into a text file on a each individual line
Go here :

http://juicystudio.com/tutorial/vb/files.asp

You can use the File System Object to read the whole text file.

You need a reference to Microsoft Scripting Runtime which you do by going to --> Project --> References :)

The site I gave you above , explains how to read and write to and from a text file :) whether it is line by line or the whole text file or certain lines, etc.

Is this what you wanted ?
Hey gecko,

The problem isn't really reading line by line or the whole file at one time using standard VB or FSO.  sydodman has plenty of examples already that show different ways to read a file...

The problem is that his file (whereever it comes from) isn't using the standard vbCrLf as a line separator.  Instead, it is either using only vbCr or only vbLf which is throwing everyones code off.

The solution is to either determine which is being used (vbCr or vbLf) and adjust the previous solutions accordingly or to first modify the actual file itself so that vbCrLf is being used (which is what my solution attempts to do).

~IM
Couldnt you go through the code to make it go through the file using vbCr and then again using vbLf ? Hence it would first do one sweep to get rid of one type of carriage return or w/e you want to call it then do a 2nd sweep to get rid of the vbLf's ? And to have a resume next in the code so that when it gets to a line that has the opposite it just carries on until the end of the file ?

I have not read through your coding but will take a peek in a minute to check this.
Usually a file has only vbCr, only vbLf, or only vbCrLf.  It's kinda unusual to see them mixed together.  It's really a pain when vbCrLf is mixed with the other two because then when you search for vbCr or vbLf, it gets found in the vbCrLf which you don't really want...
thats true, I didnt think of that but thats a very good valid point ! You could remove all of them out and then only insert vbcrlf back in :) but you would have to know what the values were in the first place on each line to be able to do that. I would just reccomend him to get the people who make the file on the server use something else that just makes a regular text file as apposed to using a mix of vbCr, vbLf etc. Make life easier on everyone lol
I know how to get rid of both just use this line:
Dim blocks() As Byte
Dim strData As String


blocks() = App.Path & "\temp.txt"
    strData = Replace(blocks(), vbLf, vbCrLf) 'removes the blocks
 
    Open blocks() For Binary Access Write As #1
    Put #1, , strData
    Close #1
Disregard that I posted the wrong code, Just use the Replace(vblf,vbcrlf) it should remove blocked characters
egl1044,

That is basically what my post several comments ago does.  It reads in the whole file, does some replacing and then writes the file back out.
Hey guys,  You have all been excellent but I have decided to split the points evenly between Shauli and Idle_mind.  I copied and pasted both of their code blocks this monring and in conjunction the program now works like a dream.  

I really appreciate all your help and thanks to everyone else for pitching in.

Cheers

Sy
Your welcome @ the pitching in comment.

I love subscribing to and or participating in questions where I can learn new things. Just glad you got your problem solved !