Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
Originally 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
-
Originally 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 geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
58 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
21 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
||
Started by gwenael, Today, 09:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by gwenael
Today, 09:29 AM
|
||
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,830 views
0 likes
|
Last Post Today, 09:09 AM |
Comment