Unanswered: Edit the Value in the text file from VB 6.0.
Facing problem in editing the value in the text file from VB 6.0.
Actually,I want i modify the value in the text file by using vb 6.0.
How can i delete the line or specific char from the text file.
I can read or insert value into the text file but how can i delete or edit the line in the text file. i have tried using WRITE or WRITELINE command
but its not doing what i want.
Below is my code can any one find where am i doing mistake
vDate = DT.Value
vSTR = "c:\AMO\FILEGENERATE\sedbvf.text"
Open vSTR For Input As #1
vCOUNT = 0
vCOUNT = vCOUNT + 1
Line Input #1, A
If InStr(1, A, "200") > 0 Then
vPOSITION = InStr(1, A, "200")
vSTR = Mid(A, 1, vPOSITION - 1)
A = vSTR
Loop Until EOF(1)