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

Home » Public Forums » archive » read a file written in fortran
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: Read a file [message #74670 is a reply to message #71186] Fri, 28 January 2011 13:14 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jan 28, 2:17 pm, Giovanna <giovanna01.san...@gmail.com> wrote:
> Well...
>
> I need to read a file file.sav and file1.cnj, then i need restore and
> to get the structures modelo.imag, conjugado.imag. And to save in the
> new file - data.dat(line 16).
>
> I don't know how to take these structures(modelo.imag, conjugado.imag)
> and save in this file data.dat
>
> CAn you help me.??
>
> My code:http://pastebin.com/GRmNtags

Again, are file.sav and file1.cnj savefiles or text files? If they are
savefiles, they can be read with restore. If they are text files,
readf is one of the ways to read them. It does not make a lot of sense
to try to read them both as if they were savefiles and text files.
Also, it does not make much sense to open file2.cnj and never do
anything with it.

And, as mentioned before, the files should be closed, and the unit
numbers released back into the pool (both can be done with free_lun).

To tell how to make the file you want, we would have to know what kind
of variables those fields are (modelo.imag, conjugado.imag), and what
kind of output you want to make of them.

The first question could be well answered by the output of

help,modelo.imag,conjugado.imag
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Graphics Update 30 Jan 2011
Next Topic: Re: Y2 axis title orientation

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

Current Time: Wed Oct 08 18:00:41 PDT 2025

Total time taken to generate the page: 0.00469 seconds