Micro Focus QTP (UFT) Forums
Removing ASCII Control Characters from a file - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Removing ASCII Control Characters from a file (/Thread-Removing-ASCII-Control-Characters-from-a-file)



Removing ASCII Control Characters from a file - Nithin - 09-30-2013

Hi,
I am automating a POS - application. After completing a transaction i get a receipt file in DB. The file when opened contains a lot of junk characters(Includes text,number,special characters). It also contains ASCII control values like SOH,STX,ETX. These lines are only readable when opened in notepad++ . In notepad or wordpad it looks like a junk character.
I need to extract values that match to fees, cash, total so that i can validate it with actuals. I'm facing issue with extracting these value. I need to remove the ASCII value to make the file in a readable format.
I am using QTP for automation. Help me out in this regard.