rani_m215
14 years agoOccasional Contributor
Aqfile.writetotextfile is not working in TC-8
I tried doing memory leak test to my application by following memory leak video tutorial but it failed creating file in the mentioned path. So I thought of trying a simple code from the help guide example but got an error in logs.
Sub CreatingAndWritingToTextFile
If (aqFile.Create("C:\MyFiles\DemoFile.txt") = 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.")
End If
End Sub
Please help me how can I create/save a text file for memory leak testing in testcomplete-8
Thanks,
MJP-TC