Jump to content

FileWritetoline help


zax
 Share

Recommended Posts

I wrote a simple script to overwrite cfg files like this;

#include <File.au3>
#NoTrayIcon

$text = InputBox("Woot ip changer", "Please type in IP and click OK")


;Fieldserver
 _FileWriteToLine("D:\server\cfg\1\world.cfg", 10, "server_ip   "& $text, 1)

it's working fine when no other word after server_ip.

My question is how to do it when i want to write in the middle of sentence for example server_ip (writetext) session?

Edited by zax
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...