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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
173 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
328 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
252 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
354 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
181 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment