Jump to content

_ArraytoString Help?


RunDLC
 Share

Recommended Posts

#include <inet.au3>
#include <array.au3>

$String = "http://www.mywebsite.com/MackDB.ini"
$File = "MackDB.ini"

inetget($String,$File,1,0)
local $sIn[7]
$sIn[0] = IniRead("MackDB.ini","Put","D1","default")
$sIn[1] = IniRead("MackDB.ini","Put","D2","default")
$sIn[2] = IniRead("MackDB.ini","Put","D3","default")
$sIn[3] = IniRead("MackDB.ini","Put","D4","default")
$sIn[4] = IniRead("MackDB.ini","Put","D5","default")
$sIn[5] = IniRead("MackDB.ini","Put","D6","default")
$sIn[6] = IniRead("MackDB.ini","Put","D7","default")
$sArray = _ArrayToString($sIn,@TAB)
filewrite("test.txt",$sArray)
filedelete("MackDB.ini")

that writes to the file as A B C D E F G , instead i want it to write 1 letter per line

A

B

C

D

E

F

G

how can i do this

Link to comment
Share on other sites

What you are looking for is

#Include <File.au3>

_FileWriteFromArray("Test.txt", $sIn)

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

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