how to go to next line when saving data in text file ?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
 
Back
Top