Why is VB putting quotes around strings inputted to a text file? How can I append a .txt file without VB putting quotes around the lines, and also put a CrLf at the end of the file so it doesn't put data on the same line twice?
Here's the code:
Private sub cmdMove855()
dim i as integer
AcctIndex = 0
Open "C:\EDI\AcctInfo.txt" for input as #1
Do until EOF(1)
Line input #1, strLineData
arrAccoutInfo(AcctIndex) = strLineData
AcctIndex = AcctIndex + 1
AcctMaxIndex = AcctIndex
Open "C:\EDI\AppendFile.txt" for append as #2
For i = 0 to AcctMaxIndex -1
write #2, arrAccountInfo(i)
Please tell me how to get rid of the quotes! And insert a carriage return at the end!