[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

Formatting issue Streamreader, Spacing is off

I want to preserve that allignment when I streamread my dos output file into my textbox.  The output file looks fine in Wordpad but does not line up correctly when read into a text box.  Please instruct me on how to preserve the DOS format.

My streamreader reads a dos output file (.out file) to my textbox like so:

 99.925           40        0        0
 99.950           70        0        0
 99.975          130        0        0
 99.990          2000       10        0
 99.993          2200       40        0

This is close to how the text file looks (left aligned columns) before streamreading (in wordpad) :

 99.925          40           0          0
 99.950          70           0          0
 99.975          130         0           0
 99.990          2000       10         0
 99.993          2200       40         0

0
RSullivan1
Asked:
RSullivan1
  • 3
  • 2
1 Solution
 
RonaldBiemansCommented:
Are there tabs or spaces in your dos output file ?
0
 
Bob LearnedCommented:
Proportional font, or non-proportional font?

Bob
0
 
RSullivan1Author Commented:
it is a proportional font and I am not sure how DOS outputs the file but Tabs would seem possible
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Bob LearnedCommented:
Try with a non-proportional font, such as Courier New.

Bob
0
 
RSullivan1Author Commented:
TheLearnedOne:

Works Perfectly with Courier New.  Thanks a lot, I appreciate it!
0
 
RSullivan1Author Commented:
Yes, how do you close this?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now