Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


filexist.m

Go to the documentation of this file.
00001 function [flg] = filexist (filename)
00002 %
00003 %       [flg] = filexist (filename)
00004 %
00005 %  if filename exists then flg = 1, else flg = 0
00006 %
00007 
00008 fid = fopen (filename,'r');
00009 if (fid == -1),
00010         flg = 0;
00011 else
00012         flg = 1;
00013         fclose (fid);
00014 end
00015 
00016 
00017 return;
 

Powered by Plone

This site conforms to the following standards: