#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
[vbld_EscapeString(vbld_TempMacroObj("FILE").ReadLi ne())]
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm Or use the Loop action. http://www.kinook.com/VisBuildPro/Manual/loopaction.htm |
#3
|
|||
|
|||
thanks,it worked ok with:
[vbld_EscapeString(vbld_TempMacroObj("FILE").ReadLi ne())] |
|
|