Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Writing to a text file with a fixed width between characters
Collapse
X
-
I just took this snapshot directly from the output window...shows clearly how a number change from 2 digits to 3 causes it to no longer line up, using this method for 10+ items is worse then using a basic Print() statement
-
OMGOriginally posted by suprsnipes View PostJust in case the number is -100. I don't quite understand why something that seems quite simple is proving to be such a pain in the butt. All I want to do be able to do is read the Output Window print statements as easy as possible and the best way for this to happen is if the 'columns' line up with each other...surely someone has figured out a way to achieve this??
did you change your output window font??
You need a fixed font?!
I am trying to align values. I wonder why this happen : string value = ""; value += string.Format("{0,-10}", "value"); value += string.Format("{0,5}", "value"); v...
courier new is safest...this is my output window font:
Comment
-
Yes Sledge I did change my font. Do you think that is my problem? I uploaded an image into post #7 instead as you pointed out my text file sample did not correctly serve it's purpose. I'll change the font and see how that effects my output. Will post an update here soon.
Comment
-
I think we are on to something nowOriginally posted by suprsnipes View PostYes Sledge I did change my font. Do you think that is my problem? I uploaded an image into post #7 instead as you pointed out my text file sample did not correctly serve it's purpose. I'll change the font and see how that effects my output. Will post an update here soon.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment