Forum Discussion
YMinaev
Staff
14 years agoHi,
Obtain the result of the aqFile.Create method and pass this result to the aqUtils.SysErrorMessage method. What message soes it return?
Obtain the result of the aqFile.Create method and pass this result to the aqUtils.SysErrorMessage method. What message soes it return?
Sub CreatingAndWritingToTextFile
res = aqFile.Create("C:\MyFiles\DemoFile.txt")
If (res = 0) Then
Call aqFile.WriteToTextFile("C:\MyFiles\DemoFile.txt", "Hello!", aqFile.ctUTF8)
Call Log.Message("The file is created and the specified text is written to it successfully.")
else
Call Log.Error("The file was not created. " & aqUtils.SysErrorMessage(res))
End If
End Sub