[b][grey]How do i read from an already opened text file using vb6.0..
The said fiel is already open by another application in append mode..
and we are to reead the contents of the opened file.
I tried to write code which is here...[/grey][/b]
Private Sub Form_Load()
Dim TxtSheet As Object
Set TxtSheet = GetObject("d:amit1.txt")
' This is a NOTEPAD APPLICATION AND IS ALREADY OPENED
Dim buffer As String
buffer = TxtSheet.Application.Value
Text1.Text = buffer
Thanks and Regards: