Jump to content

Selective FileWriteLine


xZZTx
 Share

Recommended Posts

Well now im makein a script that adds onto a .html table....

i have a good idea on how todo it but.. FileWriteLine() just writes 1 line after another starting at the end

is there a way to tell it where to write?

like how if you do FileReadLine("so&so.txt",5) it will read what ever at line 5 could FileWriteLine do it the same way?

if not does any one have any ideas on what can?

Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..
Link to comment
Share on other sites

Well now im makein a script that adds onto a .html table....

i have a good idea on how todo it but.. FileWriteLine() just writes 1 line after another starting at the end

is there a way to tell it where to write?

like how if you do FileReadLine("so&so.txt",5) it will read what ever at line 5 could FileWriteLine do it the same way?

if not does any one have any ideas on what can?

#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)

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...