By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,302 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,302 IT Pros & Developers. It's quick & easy.

Create fixed length text file

P: n/a
I have to create a fixed length text file and was hoping
someone could point me to an example or resources that
could help explain how it is done in C#.

Thanks.
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Darin,

Why don't you just write preffered number of (byte)0 values or spaces to the
file?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"Darin Browne" <db@nospam.com> wrote in message
news:14****************************@phx.gbl...
I have to create a fixed length text file and was hoping
someone could point me to an example or resources that
could help explain how it is done in C#.

Thanks.

Nov 15 '05 #2

P: n/a
What format does your file have to take? I would just create an in-memory
data structure that represents the data you want to write out, then write
that structure to disk when the time comes.

Eric

"Darin Browne" <db@nospam.com> wrote in message
news:14****************************@phx.gbl...
I have to create a fixed length text file and was hoping
someone could point me to an example or resources that
could help explain how it is done in C#.

Thanks.


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.