Article ID: 190209
Article Last Modified on 6/29/2004
Hello World
Private Sub Command1_Click()
' Open text file for appending
Open "c:\test.txt" For Append As #1
' Display the current read/write position
MsgBox Seek(1)
' Close the file
Close #1
End Sub
Private Sub Command1_Click()
Dim SizeOfFile As Long
' Determine size of file before opening
SizeOfFile = FileLen("c:\test.txt")
' Open text file for appending
Open "c:\test.txt" For Append As #1
' Display adjusted seek value
MsgBox Seek(1) + SizeOfFile
' Close the file
Close #1
End Sub
Additional query words: kbDSupport kbDSD kbVBp kbvbp400bug kbVBp600bug kbVBp500bug kbVBA kbFileIO
Keywords: kbbug KB190209