Hi,
I need to open a text file for Input, then open another text file to write output to. Is this possible in a single VB app (.exe)? Below is a sample of what I have right now, however, I'm having problems with it.
Public Sub Form_Load()
Open "C:\iFtpSvc\Hms-ftppro\users\RCI27\RCI27.txt" For Input As 1 'Opens The File And Names It #1
Call PrintReport
End Sub
Public Sub PrintReport()
Open "C:\iFtpSvc\Hms-ftppro\users\RCI27\Report.txt" For Output As 1
Print #1, "WE RECEIVED THE FOLLOWING ON "; MyDate; ":"
Print #1, Chr(13)
Any input will help!
Thanks!
I need to open a text file for Input, then open another text file to write output to. Is this possible in a single VB app (.exe)? Below is a sample of what I have right now, however, I'm having problems with it.
Public Sub Form_Load()
Open "C:\iFtpSvc\Hms-ftppro\users\RCI27\RCI27.txt" For Input As 1 'Opens The File And Names It #1
Call PrintReport
End Sub
Public Sub PrintReport()
Open "C:\iFtpSvc\Hms-ftppro\users\RCI27\Report.txt" For Output As 1
Print #1, "WE RECEIVED THE FOLLOWING ON "; MyDate; ":"
Print #1, Chr(13)
Any input will help!
Thanks!