Shan77
May 7th, 2001, 08:02 PM
I have an array with a variable number of elements and i'm trying to read it into a text file with all the elements on the same line ! ...
I'm able to put the array elements in a text file one line at a time using the following:
Open App.Path & "\test.txt" For Output As #1
Dim v As Variant
For Each v In input1
Print #1, v
Next
Close #1
Where code above this has already read in the values for the Input1() array from an input grid.
Does someone know how to write it all on the same line ??
Thanks,
Shannon.
I'm able to put the array elements in a text file one line at a time using the following:
Open App.Path & "\test.txt" For Output As #1
Dim v As Variant
For Each v In input1
Print #1, v
Next
Close #1
Where code above this has already read in the values for the Input1() array from an input grid.
Does someone know how to write it all on the same line ??
Thanks,
Shannon.