Friday, December 2, 2011

Writing into File Using StreamWriter in .NET

Writing into File Using StreamWriter in .NET


Dim Sw = New System.IO.StreamWriter(_fname)

For each _Rowdata in WholeData
    Dim _Value=_Rowdata

    Sw.WriteLine(_header)
    Sw.Flush()
Next

If Not IsNothing(Sw) Then Sw.Dispose()

No comments:

Post a Comment