Sign in to follow this  
Followers 0
Dx3

Quick File Question

5 posts in this topic

Hi again everyone, I was wondering, if I have a WritetoLine command in a script, every time it writes a new line, how to do I get it go to the next line, ex. I don't want it to overwrite line 2, I want it to go to line 3 and write. Does anyone get that? :)

Thanks so much,

-Dalton

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

Ok, thanks!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

also... there is FileWriteToLine()

where you can choose which line you want to write to

example

#include <File.au3>
;Example: Write to line 3 of c:\test.txt REPLACING line 3
_FileWriteToLine("c:\test.txt", 3, "my replacement for line 3", 1)
;Example: Write to line 3 of c:\test.txt NOT REPLACING line 3
_FileWriteToLine("c:\test.txt", 3, "my insertion", 0)

8)

Edited by Valuater

NEWHeader1.png

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  
Followers 0