Re: #15

  • Follow


Hello
I need to extract data from text file, which contain random text at a regular interval.
My text file looks something like this:

2.00 'day' 2000-01-03
'Global Mole Fraction(SOL) - Matrix' ''
    0.850421 0.662334 0.42014 0.304977 0.19464 0.107398 
   0.0579599 0.0352883 0.0235352 0.0138323 0.00822029 0.00476013 
  0.00218838 0.000692394 0.000261295 0.000107044 4.26836E-005 
4.00 'day' 2000-01-05
'Global Mole Fraction(SOL) - Matrix' ''
    0.949048 0.872466 0.744197 0.653951 0.544604 0.421489 
    0.320403 0.254397 0.207999 0.161919 0.126679 0.0969455 
   0.0640893 0.0329477 0.0187245 0.0111829 0.            00651805       
and it goes on in same way for many time steps.
8.00 'day' 2000-01-09
'Global Mole Fraction(SOL) - Matrix' ''
    0.990012 0.973676 0.94251 0.914009 0.874534 0.819587 
    0.761944 0.712168 0.667202 0.619753 0.575866 0.528003 
    0.454933 0.35189 0.281888 0.229884 0.184588 


I just want to read the numbers (below global mole fraction). The code I am using now does exactly what I want, but it takes forever for just one file, and I have 1000s of these files . Can anyone help?
0
Reply dhirajsingla15 (7) 6/2/2012 5:45:32 PM

On 6/2/2012 12:45 PM, dhiraj wrote:
....

> I just want to read the numbers (below global mole fraction). The code I
> am using now does exactly what I want, but it takes forever for just one
> file, and I have 1000s of these files . Can anyone help?

Well, how about showing what you're now doing so we don't have to 
reinvent the wheel???

--

0
Reply none1568 (6654) 6/8/2012 11:50:44 PM


1 Replies
37 Views

(page loaded in 0.07 seconds)

Similiar Articles:













7/12/2012 2:05:00 AM


Reply: