Read a file [message #74688] |
Fri, 28 January 2011 06:50  |
Giovanna
Messages: 12 Registered: January 2011
|
Junior Member |
|
|
Hello,
Me again....
I'm trying read two files and to save in other file. See my code:
http://pastebin.com/GRmNtags
I run a command restore, to restore the file .sav and .cnj.... and
then saved in 'data.dat' using 'printF'
Is this correct what I did in rows 16 to 23??
Thanks,
|
|
|
|
Re: Read a file [message #74774 is a reply to message #74688] |
Wed, 02 February 2011 08:30  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
On Feb 2, 5:42 am, Giovanna <giovanna01.san...@gmail.com> wrote:
> On 31 jan, 19:15, Paulo Penteado <pp.pente...@gmail.com> wrote:
>
>> On Jan 31, 9:02 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>>> So, file.sav and file1.cnj are savefiles ...and modelo.imag:
>
>> Then I see not point in trying to read file.sav and file1.cnj as text
>> files. Use only restore with them.
>
>>> Expression must be a structure in this context: MODELO.
>
>> That means that when you used help modelo was not in scope (or that it
>> is not a structure). Either use help at the point where you are trying
>> to use modelo, or get from wherever it comes from, before using help.
>> Your code makes it look like it comes from one of the savefiles. If
>> so, use help after restoring the file.
>
> I don't understand. :(
>
> Thanks,
Giovanna, I think it is time for you to read
the following document, please take 10 minutes
and read all of it.
http://www.catb.org/~esr/faqs/smart-questions.html
After that, I suggest you make a new post describing
what is it that you are having problems with. Make the
post self contained and apply what you learned from
the link above.
I am sure that will enable people to give you
more useful information.
Ciao,
Paolo
|
|
|
Re: Read a file [message #74777 is a reply to message #74688] |
Wed, 02 February 2011 07:53  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Feb 2, 8:42 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>> That means that when you used help modelo was not in scope (or that it
>> is not a structure). Either use help at the point where you are trying
>> to use modelo, or get from wherever it comes from, before using help.
>> Your code makes it look like it comes from one of the savefiles. If
>> so, use help after restoring the file.
>
> I don't understand. :(
What do you get if you do
restore,'file.sav',/verbose
restore,'file1.cnj',/verbose
help,modelo.imag,conjugado.imag
?
|
|
|
Re: Read a file [message #74788 is a reply to message #74738] |
Wed, 02 February 2011 02:42  |
Giovanna
Messages: 12 Registered: January 2011
|
Junior Member |
|
|
On 31 jan, 19:15, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Jan 31, 9:02 am, Giovanna <giovanna01.san...@gmail.com> wrote:
>
>> So, file.sav and file1.cnj are savefiles ...and modelo.imag:
>
> Then I see not point in trying to read file.sav and file1.cnj as text
> files. Use only restore with them.
>
>> Expression must be a structure in this context: MODELO.
>
> That means that when you used help modelo was not in scope (or that it
> is not a structure). Either use help at the point where you are trying
> to use modelo, or get from wherever it comes from, before using help.
> Your code makes it look like it comes from one of the savefiles. If
> so, use help after restoring the file.
I don't understand. :(
Thanks,
|
|
|