Re: Save an array to memory for another program to read it
- From: Gordon Sande <g.sande@xxxxxxxxxxxxxxxx>
- Date: Wed, 21 Jun 2006 12:47:53 GMT
On 2006-06-21 05:45:23 -0300, Catherine Rees Lay <spamtrap@xxxxxxxxxxxxxx> said:
Nektarios - Greece wrote:I run a program and suppose it creates an array A.
I need the program to store into memory this array, end itself and when immediately runs again to load this array again from the memory.
H O W ?
I am new in Fortran. So, please help me.
Well - I guess you could have a second program running which you sent the data to, and then when the first program starts up again it could request the data back again...
I wouldn't go there, especially since you are new to the language. Over-complicated and not portable. Just write a file and read it back in again.
One question - why is your program ending itself and then immediately starting again, while needing the data to be saved? It sounds more as if you want to go round a loop within a single run of the program.
Catherine.
Or it might be that the OP has used the term "program" where others might
have said "subroutine" so what it required is to read a bit further into
the "Intro to Programming" and find out about subroutines and functions.
The storing and loading again may be nothing more than just passing arguments.
It is the old question of whether the stated problem is the real problem
or just an attempt at describing the real problem that has resulted in a
failure to communicate.
.
- Follow-Ups:
- Re: Save an array to memory for another program to read it
- From: Richard E Maine
- Re: Save an array to memory for another program to read it
- References:
- Save an array to memory for another program to read it
- From: Nektarios - Greece
- Re: Save an array to memory for another program to read it
- From: Catherine Rees Lay
- Save an array to memory for another program to read it
- Prev by Date: Re: maximum 1D array size
- Next by Date: Re: Save an array to memory for another program to read it
- Previous by thread: Re: Save an array to memory for another program to read it
- Next by thread: Re: Save an array to memory for another program to read it
- Index(es):
Relevant Pages
|
Loading