beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 371

background image

F

UNCTION

R

EFERENCE

W

RITE

F

ILE

(

FILE

,

TEXT

)

R

EVISION

1

P

AGE

355

W

RITE

F

ILE

(

FILE

,

TEXT

)

A

RGUMENT

T

YPE

D

ESCRIPTION

file

int

File handle as required by OpenFile.

Text

cstring

Text to be written to file.

D

ESCRIPTION

Writes a string up to 512 characters in length to the specified file and returns the number of
bytes successfully written. This function does not automatically include a Line feed and
carriage return at the end. For easier programming, refer to

WriteFileLine()

.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

int.

E

XAMPLE

count := WriteFile(hFile, “Writing text to file.”)