rachithasuresh

Reading HTML files

3 posts in this topic

#1 ·  Posted (edited)

I have a folder which contains several HTML files. In all the files I need to read a particular line(Line position is same, but information is different). Instead of opening with notepad and struggling with all the HTML tags, I plan to automate copy pasting the whole file into a text file so that the line I want to search remains in the same position. What function can I use to copy paste the html file into text file?

Edited by rachithasuresh

Share this post


Link to post
Share on other sites




Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites

If the files are not too big and performance isn't a major issue, then loop through the files, and for every file use _FileReadToArray to read the file into an array. Each line will be in the array element corresponding with it's line number, so you can easily pluck out the correct lines and do whatever you want with them.


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now