1
1388-2/HB
Using word 2003, we have a massive archive of legacy text files; plain DOS
text files that I've given users a UI for opening up in Word.
If the user makes a change to one of these files, some of the documents
consistantly append the following data to the end of the text file when it
saves it back to the disk:
vbCrLf & "??" & vbCrLf (x4)
vbCrLf (x13)
For example, textfile S051234.txt will contain this, initially:
"S051234
- Data data data
- Data data data"
I'll open it in word (Plain Text format), type "something" on line 2,
ActiveDocument.Save, & .Close. Opening up the S051234.txt file in notepad
(or word, or whatever else) now shows this data to be in the file:
"S051234
something
- Data data data
- Data data data
??
??
??
??
"
I'm at a total loss as to why word is appending the "??" and the CR/LF's at
the end of the file when it saves it.
When performing a Save As... and you get that little text previewer for your
encoding choise, it shows the ??'s and the line feeds in the preview box.
None of the encoding formats availble for my choosing would change the fact
that Word was insisting upon appending this data to the end of the file.
text files that I've given users a UI for opening up in Word.
If the user makes a change to one of these files, some of the documents
consistantly append the following data to the end of the text file when it
saves it back to the disk:
vbCrLf & "??" & vbCrLf (x4)
vbCrLf (x13)
For example, textfile S051234.txt will contain this, initially:
"S051234
- Data data data
- Data data data"
I'll open it in word (Plain Text format), type "something" on line 2,
ActiveDocument.Save, & .Close. Opening up the S051234.txt file in notepad
(or word, or whatever else) now shows this data to be in the file:
"S051234
something
- Data data data
- Data data data
??
??
??
??
"
I'm at a total loss as to why word is appending the "??" and the CR/LF's at
the end of the file when it saves it.
When performing a Save As... and you get that little text previewer for your
encoding choise, it shows the ??'s and the line feeds in the preview box.
None of the encoding formats availble for my choosing would change the fact
that Word was insisting upon appending this data to the end of the file.