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!
See more
See less

Partner 728x90

Collapse

Writing to a text file with a fixed width between characters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    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
    Attached Files

    Comment


      #17
      Originally posted by suprsnipes View Post
      Just 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??
      OMG

      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:
      Attached Files

      Comment


        #18
        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


          #19
          Originally posted by suprsnipes View Post
          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.
          I think we are on to something now

          Comment


            #20
            It was my font selection all along thanks a heap Sledge!!

            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 NinjaTrader_Gaby  
            Started by halgo_boulder, 04-20-2024, 08:44 AM
            2 responses
            21 views
            0 likes
            Last Post halgo_boulder  
            Started by mishhh, 05-25-2010, 08:54 AM
            19 responses
            6,189 views
            0 likes
            Last Post rene69851  
            Started by gwenael, Today, 09:29 AM
            0 responses
            5 views
            0 likes
            Last Post gwenael
            by gwenael
             
            Started by Karado58, 11-26-2012, 02:57 PM
            8 responses
            14,830 views
            0 likes
            Last Post Option Whisperer  
            Working...
            X