Andre Posted February 2, 2005 Posted February 2, 2005 Hi, This is working : Dim $ConfigFile_Array _FileReadToArray($DefInstallDir & '\config\' &$ConfigFile, $ConfigFile_Array) $FileHandle = FileOpen($DefInstallDir & '\config\' & $ConfigFile,2) For $x = 1 to $ConfigFile_Array[0] FileWriteLine($FileHandle, $ConfigFile_Array[$x]) Next FileClose($FileHandle) This not : Dim $ConfigFile_Array _FileReadToArray($DefInstallDir & '\config\' &$ConfigFile, $ConfigFile_Array) $FileHandle = FileOpen($DefInstallDir & '\config\' & $ConfigFile,2) For $x = 1 to $ConfigFile_Array[0] $ConfigFile_Array[5] = 'test' FileWriteLine($FileHandle, $ConfigFile_Array[$x]) Next FileClose($FileHandle) Then only the text 'test' is written to the file. Can't seem to find my error. Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Andre Posted February 2, 2005 Author Posted February 2, 2005 hi, No suggestion yet ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Andre Posted February 2, 2005 Author Posted February 2, 2005 Hi, Found the problem myself The file i used was an Unix Formatted file so no CRLF in it. The _FileReadtoArray depends on them Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now