|
From: | Michael D Godfrey |
Subject: | Re: new function: textscan.m |
Date: | Fri, 22 Oct 2010 22:52:31 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4 |
On 10/22/2010 10:47 PM, John W. Eaton wrote:
Just a question: is there any need to do an fclose(fid) after theAh, good idea, I had forgotten about that feature. I'll check in the follwoing function: function retval = is_valid_file_id (fid) retval = false; if (nargin == 1) try [file, mode, arch] = fopen (fid); retval = ! isempty (file); end_try_catch else print_usage (); endif endfunction Thanks, jwe fopen(fid) ? Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |