Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Streamwriter fixed length fields 1

Status
Not open for further replies.

foundryqa

Technical User
Joined
Oct 17, 2001
Messages
162
Location
US
I need to write to a text file using fixed lengths for the output. Before I write a function to add spaces dynamically between pieces of information, I wanted to know if this is built into .net somewhere.

Thanks,

Fred
 
String.PadLeft(), String.PadRight()
 
Thanks RiverGuy, I'll give that a shot.
 
Or maybe a random access file would work for you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top