Write a line into the text file using VB
Write a line into the text file using VB
API Declarations
Dim Obj as Object
Dim F1 as Object
Dim varArr as Variant
Rate Write a line into the text file using VB
(2(2 Vote))
On error goto Err_Handler
varArr=Array("Hello","Iam","Bhuwan")
set Obj=CreateObject("Scripting.FileSystemObject")
set F1=Obj.CreateTextFile(App.Path & "\Testing.txt")
F1.writeline varArray(0) & " " & varArray(1) & " " & varArray(2)
F1.Close
Err_Handler:
MsgBox Err.Description
End Sub
Write a line into the text file using VB Comments
No comments yet — be the first to post one!
Post a Comment