Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/filecreate.html
Parent Directory
| Revision Log
Revision 3227 -
( show annotations)
( download)
( as text)
Tue Mar 24 15:10:33 2009 UTC
(15 years, 1 month ago)
by maya
File MIME type: text/html
File size: 1222 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
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 |
|
11 |
<body> |
12 |
|
13 |
|
14 |
<h1>filecreate</h1> |
15 |
|
16 |
<p> |
17 |
Creates a file. |
18 |
</p> |
19 |
|
20 |
<pre class="macro-syntax"> |
21 |
filecreate <file handle> <filename> |
22 |
</pre> |
23 |
|
24 |
<h2>Remarks</h2> |
25 |
|
26 |
<p> |
27 |
Creates and opens a new file specified by <filename>.<br> |
28 |
The file pointer is set to the beginning of the file. If file <filename> already exists, its size is truncated to zero.<br> |
29 |
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.<br> |
30 |
If the file is created successfully, the system variable "result" is set to 0. Otherwise, "result" is set to non-zero.<br> |
31 |
<br> |
32 |
|
33 |
Also, the file handle is opening after creation a file. |
34 |
</p> |
35 |
|
36 |
<h2>Example</h2> |
37 |
|
38 |
<pre class="macro-example"> |
39 |
filecreate fhandle 'data.dat' |
40 |
fileclose fhandle |
41 |
</pre> |
42 |
|
43 |
</body> |
44 |
</html> |
|