Sign in to follow this  
Followers 0
RunDLC

_ArraytoString Help?

3 posts in this topic

#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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Hello RunDLC,

Look at _FileWriteFromArray()

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

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