Jump to content

Reading HTML files

Go to solution Solved by SadBunny,

Recommended Posts

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
Link to comment
Share on other sites

  • Solution

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.

Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...