dudeim
Member
- Joined
- Oct 5, 2007
- Messages
- 121
- Reaction score
- 9
Hey,
I want to remove a specific line from a file through the use of lua code, but I would have no idea how to do that.
for example I have a file like this:
note that the actual numbers don't matter
now how would I for example erase the line of val 3 so it would become like this:
So any idea's?
Edit:
Please note that I want a way to do this in lua, I know I can just backspace it etc.. I am not stupid
Thanks!
I want to remove a specific line from a file through the use of lua code, but I would have no idea how to do that.
for example I have a file like this:
Code:
val 1 = 10
val 2 = 11
val 3 = 12
val 4 = 13
val 5 = 14
etc..
now how would I for example erase the line of val 3 so it would become like this:
Code:
val 1 = 10
val 2 = 11
val 4 = 13
val 5 = 14
etc..
So any idea's?
Edit:
Please note that I want a way to do this in lua, I know I can just backspace it etc.. I am not stupid
Thanks!
Last edited: