Cita:
lo e estado mirando pero no encuentro el error, haber si me pueden resolver la duda Dim x As String
Dim fil As File
Dim Afile As TextStream
On Local Error Resume Next
Set Afile = m_fso.CreateTextFile("hola.txt")
Set fil = m_fso.GetFile("hola.txt")
With Afile
Afile.WriteLine "que pasa"
Afile.WriteLine "adios"
Afile.Close
End With
End Sub
Dim fil As File
Dim Afile As TextStream
On Local Error Resume Next
Set Afile = m_fso.CreateTextFile("hola.txt")
Set fil = m_fso.GetFile("hola.txt")
With Afile
Afile.WriteLine "que pasa"
Afile.WriteLine "adios"
Afile.Close
End With
End Sub