[Ttssh2-commit] [4358] サンプルコード追加。

svnno****@sourc***** svnno****@sourc*****
2011年 3月 4日 (金) 00:06:26 JST


Revision: 4358
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4358
Author:   yutakapon
Date:     2011-03-04 00:06:26 +0900 (Fri, 04 Mar 2011)

Log Message:
-----------
サンプルコード追加。
http://logmett.com/forum/viewtopic.php?f=9&t=1622

Modified Paths:
--------------
    trunk/doc/en/html/macro/command/filereadln.html
    trunk/doc/ja/html/macro/command/filereadln.html


-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/filereadln.html
===================================================================
--- trunk/doc/en/html/macro/command/filereadln.html	2011-03-03 12:57:20 UTC (rev 4357)
+++ trunk/doc/en/html/macro/command/filereadln.html	2011-03-03 15:06:26 UTC (rev 4358)
@@ -52,5 +52,22 @@
 fileclose fhandle
 </pre>
 
+<pre class="macro-example">
+; Open a file.
+fileopen fhandle 'test.txt' 0
+while 1
+    ; Read a line from the file.
+    filereadln fhandle line
+    if result=1 then 
+          break
+    endif
+    ; Display the line.
+    messagebox line 'test.txt'
+    ; Repeat until the end of the file.
+endwhile
+; Close the file.
+fileclose fhandle
+</pre>
+
 </body>
 </html>

Modified: trunk/doc/ja/html/macro/command/filereadln.html
===================================================================
--- trunk/doc/ja/html/macro/command/filereadln.html	2011-03-03 12:57:20 UTC (rev 4357)
+++ trunk/doc/ja/html/macro/command/filereadln.html	2011-03-03 15:06:26 UTC (rev 4358)
@@ -53,5 +53,22 @@
 fileclose fhandle
 </pre>
 
+<pre class="macro-example">
+; ƒtƒ@ƒCƒ‹ƒI[ƒvƒ“
+fileopen fhandle 'test.txt' 0
+while 1
+    ; ˆês“ǂݍž‚Ý
+    filereadln fhandle line
+    if result=1 then 
+          break
+    endif
+    ; “ǂݍž‚ñ‚¾s‚ð•\Ž¦
+    messagebox line 'test.txt'
+    ; ƒtƒ@ƒCƒ‹ÅŒã‚Ü‚ÅŒJ‚è•Ô‚·
+endwhile
+; ƒtƒ@ƒCƒ‹ƒNƒ[ƒY
+fileclose fhandle
+</pre>
+
 </body>
 </html>



Ttssh2-commit メーリングリストの案内