Re: Problem with large .txt file [message #55127 is a reply to message #55044] |
Tue, 31 July 2007 19:09   |
aleks.franca@gmail.co
Messages: 33 Registered: March 2007
|
Member |
|
|
On 31 jul, 17:16, Bruce Bowler <bbow...@bigelow.org> wrote:
> On Tue, 31 Jul 2007 09:03:54 -0700, aleks.fra...@gmail.com wrote:
>> Hy there!
>> I have a large txt file (6.384KB) with 65000 lines. It's very large. I
>> need to open it, read every line, replace the spaces for commas, and
>> write the result in an output.txt
>
>> The code is ok. The problem is that idl crashes on line 7208. There's a
>> memory problem there.
>
> Crashes "how"? What's the error message? Is there anything unusual
> about line 7208, like embedded control characters or something else? (or
> maybe line 7207 or 7209?)
>
> Bruce
The error message is that There's not enough space in disk.
The lines 7207, 7208, and 7209 have nothing unusual. They are like
this
0.0903 0.0762 0.0744 0.1778 0.2024 13.2929 0.2531 0.4266 0.3123
3.6259 -1.4637 -6.1165 0.4098 2.3885 6 2.2416 79
0.0843 0.0701 0.0641 0.1842 0.1728 12.0156 0.1874 0.5139 0.2918
3.2822 -1.3031 -5.5164 0.4836 2.873 6 2.0511 100
0.0948 0.0792 0.0976 0.1681 0.2214 14.5702 0.3253 0.2956 0.3703
3.9688 -1.632 -6.7057 0.2653 1.7221 1 2.3352 13
The cells are separate by tabs.
I also used the function memory(), but I can't underestand it.
I have 1 GB of RAM. It shows like this:
IDL> print, result
646311 15200 14871 646311
It's weird, I can't see any problems with it.
|
|
|