Removing a line data while reading a file [message #81411] |
Mon, 17 September 2012 03:33  |
laurisilla
Messages: 9 Registered: June 2012
|
Junior Member |
|
|
Hi everyone,
My question is: how can I remove a bad record from a file while reading it. It´s a simple .dat file and all I want to do is remove erroneus line data from it. I can read the whole file without any problem and found bad data with a where function too, but then I don´t know how to tell IDL to erase it or how to make IDL not to read this record and keep on reading the rest.
I´ve created a new structure to rewrite the whole .dat file, but I want to do it without bad data records on it.
> Thank you
|
|
|
Re: Removing a line data while reading a file [message #81492 is a reply to message #81411] |
Tue, 18 September 2012 04:06  |
laurisilla
Messages: 9 Registered: June 2012
|
Junior Member |
|
|
El lunes, 17 de septiembre de 2012 11:33:31 UTC+1, Laura escribió:
> Hi everyone,
>
>
>
> My question is: how can I remove a bad record from a file while reading it. It´s a simple .dat file and all I want to do is remove erroneus line data from it. I can read the whole file without any problem and found bad data with a where function too, but then I don´t know how to tell IDL to erase it or how to make IDL not to read this record and keep on reading the rest.
>
>
>
> I´ve created a new structure to rewrite the whole .dat file, but I want to do it without bad data records on it.
>
>
>
>> Thank you
Thanks Phillip, it worked! fast and simple
|
|
|