I use the following function for single dimensioned arrays.
I may have messed up something else, but I can't seem to get
"PRINT #hFile, Ary()" to work on a multi-dimensioned array. Is there some special syntax I've missed?
In the meantime, I've had to write a second routine that goes thru the array line-by-line...
Yes, I went thru the Helpfile, even tried JOIN$, but I need TABs between fields and CRLFs between records...
I'd love to see "JOIN$" or "PRINT #file, Ary()" syntax to do so.
Code:
Function WriteFil(Ary() As String, ByVal OutFil As String) As Long 'output array to file - is this only good for a one-dim array Local hFile As Long If IsFile(OutFil) Then Kill OutFil End If hFile = FreeFile Open OutFil For Output As #hFile Print #hFile, Ary() ' [B]<----------[/B] Close #hFile End Function
"PRINT #hFile, Ary()" to work on a multi-dimensioned array. Is there some special syntax I've missed?
In the meantime, I've had to write a second routine that goes thru the array line-by-line...
Yes, I went thru the Helpfile, even tried JOIN$, but I need TABs between fields and CRLFs between records...
I'd love to see "JOIN$" or "PRINT #file, Ary()" syntax to do so.
Comment