Web+ Tutorial

Previous

  Contents  

Next

Lesson 5.1 - Opening and closing I/O files

Description
The <webFileOpen> statement opens a file for input/output processing, and the <webFileClose> statement closes a file opened with <webFileOpen>.
Syntax
<webFileOpen NAME=FileName MODE="{Read|Write|Append}"
    [LOCK="{Shared|Read|Write|ReadWrite}"] AS=AliasFileName RET=#FileReturnCode# PASSWORD="{ReadPassword|WritePassword}">
<webFileClose FILE=AliasFileName>

Agument
/tutorial/argument/arg21.wml
Example
<webFileOpen NAME=".\tmp.txt" MODE="Append" AS="TempFile"
    RET=#FileReturnCode# PASSWORD="Admin">
<webFileClose FILE="TempFile">

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