Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Deleting single line of txt file

$
0
0
I want to delete single line of text from a .txt file and cannot get it to work.

First I use

[ autoit ]      
$lineDelete = FileOpen("test.txt", 1)

And than

[ autoit ]      
_FileWriteToLine($lineDelete, 2,"", 1)

This does nothing, and if I change 2nd flag in FileOpen to 2 than it erase entire text from file. Any ideas or suggestions?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>