I need help, I am trying to create a text file from an array. This is my script so far:
vb
Dim _strLocationandNameofFile As String = "F:\MiramarBooks.txt"
Dim objWriter As New IO.StreamWriter("F:\Inventory.txt")
Dim intCount As Integer
Dim strFileErrorMessage As String = "The File is not available. Restart when it is available."
If IO.File.Exists(_strLocationandNameofFile) Then
objWriter.Write(_strInventoryItem)
objWriter.Write(",")
objWriter.Write(_decPrice)
objWriter.Write(",")
objWriter.Write(_intQuantityonHand)
objWriter.Write(",")
objWriter.Write(_intQuantityonOrder)
intCount += 1
End If
objWriter.Close()
*edit: Please use code tags in the future, thanks!

At this point I can get the text file but the information is not what I need. The file shows me this when created:
System.String[],System.Decimal[],System.Int32[],System.Int32[]
I need to show the actual data, Title, Item Price, Numbers on Hand, Total Price of Numbers on Hand.
I also need to show more than just one record (actually 20 records total) in the text file.
Please help.
This post has been edited by Martyr2: 12 Apr, 2008 - 08:37 AM