Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Contents of /trunk/doc/jp/html/macro/command/filecreate.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3221 - (show annotations) (download) (as text)
Tue Mar 24 09:37:20 2009 UTC (15 years, 2 months ago) by maya
File MIME type: text/html
File size: 1167 byte(s)
CVS から SVN へ移行: trunk に集約
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=Shift_JIS">
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 ファイルを作成する。
18 </p>
19
20 <pre class="macro-syntax">
21 filecreate &lt;file handle&gt; &lt;filename&gt;
22 </pre>
23
24 <h2>解説</h2>
25
26 <p>
27 ファイル &lt;filename&gt; を新しく作成しオープンする。<br>
28 ファイルポインタはファイルの先頭にセットされる。すでに同じ名前のファイルが存在する場合、ファイルサイズは0にされる。<br>
29 もしファイルが正しく作成され、オープンされた場合、ファイルハンドルが整数変数 &lt;file handle&gt; に格納される。それ以外の場合、&lt;file handle&gt; に-1が格納される。<br>
30 ファイルの作成が成功した場合、システム変数 result に 0 が格納される。それ以外の場合, result に 0 以外が格納される。<br>
31 <br>
32
33 なお、ファイル作成後、ファイルハンドルはオープンされたままとなる。
34 </p>
35
36 <h2></h2>
37
38 <pre class="macro-example">
39 filecreate fhandle 'data.dat'
40 fileclose fhandle
41 </pre>
42
43 </body>
44 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26