View Single Post
  #1  
Old 12-08-2011, 12:32 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Reading a text file containing special chars

I am reading a text file line by line -first by opening it:
' open the file for reading
Application.Macros(vbldMacroTemporary).Add "FILE", vbld_FSO().OpenTextFile("%HB_BTS_TEXT_FILE_FULLPAT H%")

and then parsing line by line with:
[vbld_TempMacroObj("FILE").ReadLine()]

Problem is the script fails when text file contains something like % as it thinks this is a macro.
So how can I parse line by line such a file containing special chars?
Reply With Quote