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

Home » Public Forums » archive » Combine ascii and binary format (i.e. formatted and unformatted)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Combine ascii and binary format (i.e. formatted and unformatted) [message #19761] Fri, 14 April 2000 00:00
Nicolas Decoster is currently offline  Nicolas Decoster
Messages: 34
Registered: March 2000
Member
Hi !

I have (once again) a newbie question.

I need to read files I created using C. They have the following format:
an ascii integer, followed by a blank space followed (with no new line)
by a binary array of double. In C, these files are created like that:

fprintf(fileID, "%d ", myInteger);
fwrite(myArray, sizeof(double), sizeOfMyArray, fileID);

Does someone know how I can read such files with IDL ? I tried, but I
can't figure how to specify the format string to read my integer, the
space after it and nothing else, so that I can get my array with a
simple readu.

Thanks for any help.

Nicolas.

--
T�l. : 00 (33) 5 62 88 11 16
Fax : 00 (33) 5 62 88 11 12
Nicolas.Decoster@Noveltis.fr

Noveltis
Parc Technologique du Canal
2, avenue de l'Europe
31520 Ramonville Saint Agne - France
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: expose events and window dragging in object graphics
Next Topic: interactive plotting and ps output.

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

Current Time: Wed Oct 08 19:23:31 PDT 2025

Total time taken to generate the page: 0.00564 seconds