Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 342 - (show annotations) (download) (as text)
Tue Dec 26 13:10:29 2006 UTC (17 years, 5 months ago) by taketombo
Original Path: doc/trunk/jp/html/macro/command/filereadln.html
File MIME type: text/html
File size: 1315 byte(s)
(none)

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>filereadln</TITLE>
7 <link rel="stylesheet" href="../../style.css" type="text/css">
8 </HEAD>
9 <BODY>
10
11
12 <FONT SIZE="+2">filereadln</FONT><BR><BR>
13
14 形式:
15 <UL>
16 <B>
17 filereadln &lt;file handle&gt; &lt;strvar&gt;
18 </B>
19 </UL>
20
21 <pre>
22
23 ファイルハンドル &lt;file handle&gt; で指定されるファイルから一行読む。
24 読み込まれた行は、文字列変数 &lt;strvar&gt; に格納される。
25 ファイルポインタは次の行の始めへ移動する。もし、行を読んでいる間にファイルポインタがファイルの
26 最後に達した場合、システム変数 result に1が格納される。それ以外の場合、result に0が格納される。
27
28 例:
29 <B>fileopen fhandle 'test.txt' 0</B> ファイルオープン
30 <B>:loop</B>
31 <B>filereadln fhandle line</B> 一行読み込み
32 <B>if result goto fclose</B>
33 <B>messagebox line 'test.txt</B>' 読み込んだ行を表示
34 <B>goto loop</B>  ファイル最後まで繰り返す
35 <B>fclose</B>
36 <B>fileclose fhandle</B> ファイルクローズ
37
38 </pre>
39
40
41 </BODY>
42 </HTML>

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