Jump to content
Sign in to follow this  
Dieuz

FileDeleteLine

Recommended Posts

Dieuz

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!

Share this post


Link to post
Share on other sites
Dieuz

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?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.