Sign in to follow this  
Followers 0
gcue

Filewritefromarray

2 posts in this topic

Hello.

Im trying to write my results to a file.

i know i need to use _FileListToArray but not sure where/how to put it

anything else i need to include?

#include <file.au3>
$sFile = @ScriptDir & "\settings.txt"


Dim $assets
If Not _FileReadToArray("assets.txt",$assets) Then
   MsgBox(4096,"Error", " Cannot Find assets.txt " )
   Exit
EndIf
For $x = 1 to $assets[0]

$ets1 = IniRead("\\" & $assets[$x] & "\c$\program files\ETS\BIN\ets.ini", "ENVIRONMENT", "PRIMARY_SERVER", "NotFound")

_FileWriteFromArray($sFile, $ets1)

Next

Share this post


Link to post
Share on other sites



Does not look like "$ets1" is a array.


UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

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  
Followers 0