rachithasuresh Posted March 2, 2015 Posted March 2, 2015 (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 March 2, 2015 by rachithasuresh
Kyan Posted March 2, 2015 Posted March 2, 2015 FileReadLine() 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
Solution SadBunny Posted March 2, 2015 Solution Posted March 2, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now