Re: A problem in writting a sequential binary file (compiled with LF95)
- From: "David Flower" <DavJFlower@xxxxxxx>
- Date: 27 Nov 2006 07:14:42 -0800
On Nov 27, 2:56 pm, "dpb" <dpboza...@xxxxxxxx> wrote:
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)
FORM = 'binary' is a Lahey extension. I don't know if it means
something different to FORM = 'unformatted'. Why not try the latter.
Dave Flower
.
- Follow-Ups:
- References:
- Prev by Date: Re: Pet hates
- Next by Date: Re: A problem in writting a sequential binary file (compiled with LF95)
- Previous by thread: Re: 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
|