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 cre8able, Today, 09:15 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 09:15 PM
|
||
Started by cummish, Today, 08:43 PM
|
0 responses
6 views
0 likes
|
Last Post
by cummish
Today, 08:43 PM
|
||
Started by Option Whisperer, Today, 07:58 PM
|
4 responses
18 views
0 likes
|
Last Post Today, 08:32 PM | ||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
13 responses
86 views
0 likes
|
Last Post
by ETFVoyageur
Today, 08:14 PM
|
||
Started by cupir2, Today, 07:44 PM
|
0 responses
11 views
0 likes
|
Last Post
by cupir2
Today, 07:44 PM
|
Comment