The file get's created and records are written. Now, the problem is that this needs to be a fixed length text file. I am reading data retrieved from a stored procedure and looping through a data table to populate the text file like:
For Each Row In myDataTable.Rows
myText = myDataTable.Rows(i).Item(0).ToString() & _
myDataTable.Rows(i).Item(1).ToString() & _
Any suggestion to get a fixed length regardless what is filled from my data table?