comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Reading and saving a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading and saving a file [message #74629 is a reply to message #74626] Wed, 26 January 2011 10:44 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Jan 26, 1:19 pm, Giovanna <giovanna01.san...@gmail.com> wrote:
> On 26 jan, 13:37, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>> On 26 jan, 13:22, Paulo Penteado <pp.pente...@gmail.com> wrote:
>
>>> On Jan 26, 12:48 pm, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>>>> So, i'm reading a file, i need to extract data and save into another
>>>> file, but is coming with strange characters.
>>>> In what format I save so they do not come up with these strange
>>>> characters and that JAVA can also read??
>
>>> Where do you see the problem? In IDL, from what was read? In the file
>>> written by IDL? Which characters are creating the problem?
>
>>> Generally speaking, any text files made in IDL should be easy to read
>>> in Java, since IDL only natively does ASCII strings, and Java natively
>>> uses Unicode.
>
>> I'm reading this file for example:http://pastebin.com/ctHZC8wvand
>> when i save characters appear. See:http://pastebin.com/HsQse0uy
>
>> My code:http://pastebin.com/eiAVywr1
>
>> Thanks
>
> Hi all,
>
> I'm reading a file, i need to extract data and save into another
> file, but is coming with strange characters.
> I'm reading this file for example:http://pastebin.com/ZLgMjrH3and
> when i save characters appear. See:http://pastebin.com/NbwKhqAw
>
> My code:http://pastebin.com/kShggiSa
>
> I need to save in a format that is then recognized by JAVA.
>
> Understood?

So, you're saying that when you restore your saved 'teste1.dat', and
type print, file you get those characters? Could it be possible that
your original file has control characters hidden? Try opening it with
a plain old text editor to see if there are hidden characters.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: configuration file to go along with a virtual machine program
Next Topic: MATRIX LOGARITHM (and EXPONENTIAL)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:24:46 PDT 2025

Total time taken to generate the page: 0.55848 seconds