Re: A problem in writting a sequential binary file (compiled with LF95)
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 27 Nov 2006 06:56:29 -0800
P.Wholey wrote:
....
do i=1,testnum....
write(33)test(i)
enddo
The problem is a little weird. If I give the "testnum" a small value
like 1001, it works well. But If a bigger value e.g. 3000 is given, an
error message as below will appear:
****************************************************************************
An I/O error was detected (system call=write, errno=6, system
message="bad file
number", unit=33).
Program Completed
Press Enter to Continue.
****************************************************************************
And the generated file has less than 8 KB data.
I'm quite confused. Could anyone help me out?
Looks to me like a request to Lahey support would be in order.
One question/suggestion -- what happens if you replace the "loop write"
w/
write(33) test(1:testnum)
.
- Follow-Ups:
- Re: A problem in writting a sequential binary file (compiled with LF95)
- From: David Flower
- Re: A problem in writting a sequential binary file (compiled with LF95)
- References:
- Prev by Date: Re: Absoft f77 compiler error
- Next by Date: Re: Cray binary format
- Previous by thread: A problem in writting a sequential binary file (compiled with LF95)
- Next by thread: Re: A problem in writting a sequential binary file (compiled with LF95)
- Index(es):
Relevant Pages
|