Web+ Tutorial

Previous

  Contents  

Next

Lesson 5.5 - Reading from and writing to text files

Description
These statements read from or write to files opened with the <webFileOpen> statement.
Syntax
<webFileGetChar FILE=AliasFileName RESULT=#ResultString#
    PASSWORD=ReadPassword>
<webFileGetLine FILE=AliasFileName RESULT=#ResultString#
    PASSWORD=ReadPassword>
<webFilePutChar FILE=AliasFileName VALUE=#ValueString#
    PASSWORD=WritePassword>
<webFilePutLine FILE=AliasFileName VALUE=#ValueString#
    PASSWORD=WritePassword>

Agument
/tutorial/argument/arg25.wml
Example
<webFileGetChar FILE="TempFile" RESULT=#OutputChar#
    PASSWORD="RPass">
<webFileGetLine FILE="TempFile" RESULT=#OutputString#
    PASSWORD="RPass">
<webFilePutChar FILE="TempFile" VALUE=#InputChar#
    PASSWORD="WPass">
<webFilePutLine FILE="TempFile" VALUE=#InputString#
    PASSWORD="WPass">

Exercise
This example is for your reference. You can try it on your own system.

You can try out some Web+ code of your own here.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com