[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fclose documentation
From: |
taltman |
Subject: |
Re: fclose documentation |
Date: |
Tue, 11 Nov 2003 20:28:08 +0000 (UTC) |
Yeah, I'm observing that too on 2.1.50:
octave> filename = fopen("test.txt","w+")
filename =
{
id = 3
name = test.txt
mode = w+
arch = native
status = 1
}
octave> fclose(filename)
ans = 0
---
Cheers,
~Tomer
On Nov 11, 2003 at 10:53am, Jan-Mark Batke wrote:
batke >Date: Tue, 11 Nov 2003 10:53:15 +0100
batke >From: Jan-Mark Batke <address@hidden>
batke >To: address@hidden
batke >Subject: fclose documentation
batke >Resent-Date: Tue, 11 Nov 2003 03:52:00 -0600
batke >Resent-From: address@hidden
batke >
batke >
batke >Hello,
batke >
batke >the octave info file tells about fclose:
batke >
batke >- Built-in Function: fclose (FID)
batke > Closes the specified file. If an error is encountered while
batke > trying to close the file, an error message is printed and `fclose'
batke > returns 0. Otherwise, it returns 1.
batke >
batke >I found the opposite (my text file is written and closed
batke >correctly) and the return value is 0.
batke >
batke > Best
batke >
batke >Jan-Mark
batke >
batke >
batke >
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------