Jump to content

Recommended Posts

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
Posted

Heroes, there is no such thing

  Reveal hidden contents

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

  • Solution
Posted

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.

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...