mattschinkel Posted June 28, 2010 Posted June 28, 2010 Here is a _FileDeleteLine function that I created. I know using arrays are slow, so maybe it could be improved. I think autoit needs a function like this one. You could use _FileWriteToLine with "" as a parameter, but it will not remove the line space like my function will. Func _FileDeleteLine(ByRef $iFileName, ByRef $iLine) Dim $iMyArray _FileReadToArray($iFileName, $iMyArray) _ArrayDelete ($iMyArray, 0) _ArrayDelete ($iMyArray, $iLine) _FileWriteFromArray($iFileName, $iMyArray) EndFunc Matt.
JohnOne Posted June 28, 2010 Posted June 28, 2010 You could use _FileWriteToLine with "" as a parameter, but it will not remove the line space like my function will.Just for info, _FileWriteToLine() will delete the line when the $fOverWrite flag is set to 1. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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