Hello,
I have a Word file which I want to read line by line.
First I save the file as text-file.
Then I read this text-file and write it as a new file.
THE PROBLEM: Special characters like "é" are not translated
correct (in this case "é" is translated as ",".
This is the code:
Set ObjXRead=CreateObject("Scripting.FileSystemObject". _
GetFile(strTempPad & strFileRead). _
OpenAsTextStream(1, 0)
Set ObjXWrite=CreateObject("Scripting.FileSystemObject". _
createtextfile(strTempPad & strFileWrite). _
GetFile(strTempPad & strFileWrite)
Do While Not ObjXRead.AtEndOfStream
strLine = ObjXRead.ReadLine
strLine = DoSomeThingWithLine(strLine)
ObjXWrite.WriteLine strLine
.....
Please some help.
I have a Word file which I want to read line by line.
First I save the file as text-file.
Then I read this text-file and write it as a new file.
THE PROBLEM: Special characters like "é" are not translated
correct (in this case "é" is translated as ",".
This is the code:
Set ObjXRead=CreateObject("Scripting.FileSystemObject". _
GetFile(strTempPad & strFileRead). _
OpenAsTextStream(1, 0)
Set ObjXWrite=CreateObject("Scripting.FileSystemObject". _
createtextfile(strTempPad & strFileWrite). _
GetFile(strTempPad & strFileWrite)
Do While Not ObjXRead.AtEndOfStream
strLine = ObjXRead.ReadLine
strLine = DoSomeThingWithLine(strLine)
ObjXWrite.WriteLine strLine
.....
Please some help.