EDN Admin
Well-known member
hi all
i saved record in text file by this code ... Dim Row As Integer = Nothing
Dim FileName As String = txtPath.Text
Using Writer As StreamWriter = New StreamWriter(FileName)
Dim I As Integer
For I = 1 To DsMbsPayment.QPayForBank.Count
Row = I - 1
With DsMbsPayment.QPayForBank
Writer.Write(Format(CInt(I), "#0000"), Format(CDbl(.Rows(Row).Item("AccountNumber").ToString), "#000000000000"), Format(CDbl(.Rows(Row).Item("Amount").ToString), "#00000000000000"), "000000000000000")
End With
Next I
Writer.Close()
End Using
but when i see text file
all data are in first line
how to save data in next lines
please help me
thanks
Name of Allah, Most Gracious, Most Merciful and He created the human
View the full article
i saved record in text file by this code ... Dim Row As Integer = Nothing
Dim FileName As String = txtPath.Text
Using Writer As StreamWriter = New StreamWriter(FileName)
Dim I As Integer
For I = 1 To DsMbsPayment.QPayForBank.Count
Row = I - 1
With DsMbsPayment.QPayForBank
Writer.Write(Format(CInt(I), "#0000"), Format(CDbl(.Rows(Row).Item("AccountNumber").ToString), "#000000000000"), Format(CDbl(.Rows(Row).Item("Amount").ToString), "#00000000000000"), "000000000000000")
End With
Next I
Writer.Close()
End Using
but when i see text file
all data are in first line
how to save data in next lines
please help me
thanks
Name of Allah, Most Gracious, Most Merciful and He created the human
View the full article