Quote:

Note: These values are cumulative. So if you want to open a file for write access, and create it if it does not yet exist, you should specify 5. Notice, however, that a file can not be opened for read and write access at the same time.





Code:
Break On

Dim $File, $OpenFile, $WL, $CloseFile
$File='C:\TEMP\TEST.TXT'
$OpenFile=Open(1, $File,5)
$WL=WriteLine(1,'Wow my data was written to the file'+@CRLF)
$CloseFile = Close(1)