Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing an Array to a File

Status
Not open for further replies.

yacyac

Programmer
Jul 29, 2002
78
US
With a single dimensional array, I can write the array to a file using

Print #1, join(data,vbtab)

The data will be written as a single line of data tab delimited.

Is there a way of doing this for a two dimensional array. right now I use for data(i,k)

For i = 0 to ubound(data,1)
For k = 0 to (ubound(data,2)-1)
Print #1, data(i,k);vbtab;
Next K
Print data(i,k)
Next i
 
yacyac,

Why do you ask if this is possible? You already doing this: data(i,k)? Do you get errors?

vladk
 
vladk

I was hoping that i could use something like

For i = 0 to ubound(data,1)
Print #1, join(data,vbtab)
next i

So I could eliminate the inner for/next statement.
 
Did you try FileSystemObject to write into the file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top