Sign in to follow this  
Followers 0
6105

Save parts of Array to file

2 posts in this topic

Hello,

i have the question what i can't find in help, just for excel ExcelReadArray.

How i can send the colum of array like Array[$all][1] to notepad?

Thank you.


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites



You don't need to send it to Notepad:

$content = ""
$file = "C:\test.txt"
FileClose(FileOpen($file, 2))       ;create the file

For $i=1 To UBound($Array)-1
    $content &= $Array[$i][1]&@CRLF
Next
FileWrite($file, $content)

You can simply write it to the file.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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