Jump to content
Sign in to follow this  
xZZTx

Selective FileWriteLine

Recommended Posts

xZZTx

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

Share this post


Link to post
Share on other sites
Lapo

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)

Share this post


Link to post
Share on other sites
xZZTx

thx Lapo this is what i need


Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

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  

×