Glyco Posted January 24, 2011 Posted January 24, 2011 hello there are more than 5000000 lines in a text file with .txt ext. we want to count first 100 or 200 lines and save in a new text file with name 1.txt then count next 100 lines and save in 2.txt doing so on... and then when all the lines are sepreted in different and new files, script ends. any ideas on how to start doing this? i 've not touched autoit for much time...
MrMitchell Posted January 24, 2011 Posted January 24, 2011 (edited) Start with FileOpen(), FileReadLine(), FileWriteLine() Edit: I wonder if AutoIt can open such a large file?? ...never tried Edited January 24, 2011 by MrMitchell
Glyco Posted January 24, 2011 Author Posted January 24, 2011 file size is 3.5mb & i don't know that how many lines are in there... file have 8 characters long numbers on each line, so i guessed there 'll be too many lines can you explain a bit more to make it easy and better automation? thanks
MrMitchell Posted January 25, 2011 Posted January 25, 2011 Yah it should work no problem... It would be difficult to explain without making it confusing, but it would be really easy to do, maybe 20 lines or less. Why don't you give it a shot then post the code you end up with.
wakillon Posted January 25, 2011 Posted January 25, 2011 Yah it should work no problem...It would be difficult to explain without making it confusing, but it would be really easy to do, maybe 20 lines or less. Why don't you give it a shot then post the code you end up with.I made a function today on another may be it can help you ! AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
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