Jump to content

Quick File Question


Recommended Posts

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

Link to comment
Share on other sites

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...