USING (streamwriter sw = new streamwriter ("testfile.txt"))
{
// Add some text to the file.
// Traverse DataSet11,
Foreach (System.Data.DataRow Row in DataSet11.tables [0] .rows)
{
// Traverse each column of the current row, if you do not output a field value for the flight, otherwise, "", "
For (int coL = 0; col
{
IF (! (row [col) is system.dbnull)
{
SW.WRITE (Row [col] .tostring ());
}
SW.WRITE (",");
}
SW.WRITELINE ("");
}
}