Results 1 to 2 of 2

Thread: Formatting A Text File (the hard way) [resolved]

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Formatting A Text File (the hard way) [resolved]

    Ok, I have a text file that will have lets say three columns. The headings will be a certain length but the data varies. I want all the columns and data to line up to the left. I think the best way is to get the length of each data point and then add spaces. I need help with sending spaces like in vb char() something like that. any ideas??
    Last edited by jordan23; Aug 16th, 2004 at 12:01 PM.

  2. #2

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166
    I use string.padleft and string.padright to insert the number of blanks I need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width