FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
file_exists.c
Go to the documentation of this file.
1
/* file existence testing */
2
3
#include "
fb.h
"
4
5
FBCALL
int
fb_FileExists
6
(
7
const
char
*
filename
8
)
9
{
10
FILE *fp;
11
12
fp = fopen(filename,
"r"
);
13
if
(fp)
14
{
15
fclose(fp);
16
return
FB_TRUE
;
17
}
18
else
19
{
20
return
FB_FALSE
;
21
}
22
}
rtlib
file_exists.c
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4