Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/filecreate.html
Parent Directory
| Revision Log
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
3 |
<HTML> |
4 |
<HEAD> |
5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6 |
<TITLE>filecreate</TITLE> |
7 |
<META http-equiv="Content-Style-Type" content="text/css"> |
8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
9 |
</HEAD> |
10 |
<BODY> |
11 |
|
12 |
<DIV ALIGN="left"> |
13 |
<FONT SIZE="+2">filecreate</FONT><BR><BR> |
14 |
</div> |
15 |
|
16 |
Format: |
17 |
<UL> |
18 |
<B> |
19 |
filecreate <file handle> <filename> |
20 |
</B> |
21 |
</UL> |
22 |
|
23 |
<p> |
24 |
Creates and opens a new file specified by <filename>. |
25 |
</p> |
26 |
|
27 |
<p> |
28 |
The file pointer is set to the beginning of the file. If file <filename> already exists, its size is truncated to zero.</p> |
29 |
|
30 |
<p> |
31 |
If the file is successfully created and opened, the file handle is returned in the integer variable <file handle>. Otherwise, <file handle> is set to -1. |
32 |
</p> |
33 |
|
34 |
<p> |
35 |
If the file is created successfully, the system variable "result" is set to 0. Otherwise, "result" is set to non-zero. |
36 |
</p> |
37 |
|
38 |
<pre> |
39 |
Example: |
40 |
filecreate fhandle 'data.dat' |
41 |
</pre> |
42 |
|
43 |
</BODY> |
44 |
</HTML> |
|