how to avoid blank lines

swathys

Member
Joined
Sep 21, 2010
Messages
7
Programming Experience
Beginner
hi,

i have coded as below but once the record deleted and when the application write to text file again it gives an error says index was outside the bounds of the array any solution?

Dim stream As New IO.StreamWriter("C:\Documents and Settings\Administrator\Desktop\Bill Payment\BillPaymentRecords.txt", False)
stream.WriteLine("")
stream.Close()
 
Back
Top