03-16-2009, 12:27 PM
Hi All,
I am facing one issue regarding reading a file, Can any one pls explain me to resolve the issue.
In my test I m copying some text from application, creating a file by commandand writing that captured text in that file "f1.write(stroutput)".
But Now I want read that file
When I used above two statements i m getting a junk value as "ybT"
(Please see that attached snap for complete script and message box.)
Can I know is that any command to read the file content properly and avoid such junk messages.
Regards
Raj
I am facing one issue regarding reading a file, Can any one pls explain me to resolve the issue.
In my test I m copying some text from application, creating a file by command
Code:
"Set f1=fso.CreateTextFile("C:\test10.txt",ForWriting,True)"
But Now I want read that file
Code:
Set f2 = fso.OpenTextFile("C:\test10.txt",ForReading,True)
msgbox f2.ReadAll
When I used above two statements i m getting a junk value as "ybT"
(Please see that attached snap for complete script and message box.)
Can I know is that any command to read the file content properly and avoid such junk messages.
Regards
Raj