1.

In UFT, what is the code to write data to text file?

Answer»

The correct syntax to write data to text file in UFT is −

Content = “TutorialPointsTutorials”Set Fo = createobject ("Scripting.FilesystemObject")Set f = Fo.openTextFile ("c:\myFile.txt",8,true)     ' open in write mode   f.Write (contents)   f.Close   Set f = nothing


Discussion

No Comment Found