12-18-2008, 11:06 AM
Hi All,
Can you pls help me on the below scenario?
I am trying to capture the Text from 2 different web pages and stored in a Text file. I used the following code
1st FileWeb page1)
--------
2nd Fileweb page2)
-------
Now, I have to concatenate these two files and save in a different file. I need to remove extra spaces as well.
Can you please provide me the solution to do this?
Earliest reply is highly appreciated!
Thanks,
kishore
Can you pls help me on the below scenario?
I am trying to capture the Text from 2 different web pages and stored in a Text file. I used the following code
1st FileWeb page1)
--------
Code:
sVar=br(br).pg(pg).object.DocumentElement.Innertext
set oFSO=CreateObject("scripting.Filesystemobject")
set oFile1=oFSO.CreateTextFile("C:\temp\file1.txt",ForWriting,True)
oFile1.write sVar
oFile1.close
-------
Code:
sVar2=br(br).pg(pg).object.DocumentElement.Innertext
set oFile1=oFSO.CreateTextFile("C:\temp\file2.txt",ForWriting,True)
oFile2.write sVar2
oFile2.Close
Now, I have to concatenate these two files and save in a different file. I need to remove extra spaces as well.
Can you please provide me the solution to do this?
Earliest reply is highly appreciated!
Thanks,
kishore