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

Home » Public Forums » archive » Re: IDL_FileOpen problem?
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: IDL_FileOpen problem? [message #20341 is a reply to message #20338] Tue, 13 June 2000 00:00 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
Hello,

My eyes tend to glaze over when I see c code... but I think I see that
you are expecting your 'foo' file to be binary format.
If so, you should set the BINARY keyword to OPENW since the default
behavior on WIN platforms is to write in text format.

Ben



Nando Iavarone wrote:

> Dear all,
> I have some problems reading files using DLM under win platform.
> I am using IDL 5.2.1 and VisualC++ compiler.
>
> I wrote a little file called 'foo', using the simple
>
> IDL> data = dindgen(10)
> IDL> openW, 1, 'foo'
> IDL> writeU, 1, data
> IDL> close, 1
>
> After it I need to read them from a c-function in a DLM.
>
>
>
> - The code below works fine on unix platform (SGI and linux) but it
> can't read data if used on WIN 98, NT.
> Anyone knows what's happening? A flag problem in the open?
> Note that after the IDL_FileOpen the same procedure is repeated using
> simple fopen, and all is ok.
>
>

--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL - linux and intel dual processor set-up
Next Topic: IDL - linux and intel dual processor set-up

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

Current Time: Wed Oct 08 19:36:52 PDT 2025

Total time taken to generate the page: 0.00506 seconds