Friends I want that when I press f1 button then it should delete first 10 lines of a specific .txt file and it should keep the save changes after deleting first 10 lines of that .txt file. For this I tried to use so many codes but nothing seems to work. you can see in this image what i want-
As I tried-
Code: Select all
Loop, read, E:\data collection\all reports\data1.txt
Loop, parse, A_LoopReadLine, %A_Tab%
msgbox % a_loopfield
These codes are showing the content of each line of data1.txt in one by one msgbox. But i do not know how can i delete the first ten line of data1.txt
I also tried to use tf functions library from here- https://github.com/hi5/TF
but when i download tf.ahk and included it in my script and tried to run it then it showed this error-
I do not know what to do to solve this issue.
please help me.....
thanks a lot....