Help with Deleting A Line In Python
Go to solution
Solved by Hans Christian | Teri,
What exactly is it that you want to do? Print the file and select lines to delete? Just delete line 2 to 4? Either way your problem can probably be solved by loading the lines of text into an array, removing the lines you don't want to keep, and overwriting the file with what lines are left in the array.
-
Featured Topics
-
Topics
-
0
-
0
-
RvG Iced ·
Posted in New Builds and Planning0 -
Rogers24 ·
Posted in Troubleshooting2 -
TurkishBTW ·
Posted in Peripherals0 -
1
-
kennethk ·
Posted in Peripherals1 -
6
-
BTSHalfLifeAndGmodFan2003 ·
Posted in Storage Devices6 -
6
-
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