beautypg.com

6 the file object, Methods, Status = append ( filename, content ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 43: Status = copy ( existingfile, newfile, overwrite ), Method action

background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 43


3.6

T

HE

F

ILE

O

BJECT

The File object provides access to the Windows file system. The File object is
a property of the OS object; OS.File.

Methods

The following methods are available

Method

Action

Append

Append content to a file.

Copy

Create a copy of an existing file.

CreateDirectory

Create a new directory.

Delete

Delete an existing file.

GetAttributes

Get the attributes of an existing file.

GetList

Get list of files with names that match a pattern.

GetOpenFileName Select a filename with a file Open dialog.
GetSaveFileName Select a filename with a file Save dialog
Move

Move or rename a file.

Read

Read file contents.

RemoveDirectory

Remove (delete) an existing directory.

SetAttributes

Set the attributes of an existing file.

Write

Write contents to a new or existing file.

status = Append ( fileName, content )

Append content to the file. The content is specified as a text string. Return true
for success, false for failure. If the file does not exist, it is created. Use the File
properties LastError or LastErrorMessge to get additional error information.

status = Copy ( existingFile, newFile, overWrite )

Copy an existing file to a new file. If a file already exists with the new file name,
copy will fail unless overWrite is true. Return true for success, false for failure.
Use the File properties LastError or LastErrorMessge to get additional error
information.

This manual is related to the following products: