Dieuz Posted January 20, 2010 Share Posted January 20, 2010 Hey guys, Wich functions could I use if I want to delete the first X line of a text file? Text file: 1 2 3 4 5 6 7 8 Thanks! Link to comment Share on other sites More sharing options...
JohnOne Posted January 20, 2010 Share Posted January 20, 2010 _FileWriteToLine() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Dieuz Posted January 21, 2010 Author Share Posted January 21, 2010 But is there anyway to delete a block of line at the same time. If I use _FileWritetoLine(), it is really long if I have multiple lines to delete such as: For $y = 1 to 2000 _FileWriteToLine("ID.txt", 1, "", 1) ConsoleWrite($y) Next How can I delete the first 2000 lines at the same time? Link to comment Share on other sites More sharing options...
Dieuz Posted January 21, 2010 Author Share Posted January 21, 2010 Wow, exactly what I needed, thanks Thanubis! Link to comment Share on other sites More sharing options...
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