the goat boy
May 28, 2008, 10:51 AM
Post #1 of 2
I am kinda new to all this, so please bear with me!
I am working on a database project for collage and i need a little help.
i am printing out some text into a file, for instance:
number name quantity price
45 Pies 4 0.99
99 chocolate 8 1.99
now my problem is the formatting. i would like to have all the data in neat rows. i have tried using \t, but this doesnt work as the entries are not fixed length.
is there some way i can fix the length of the strings, so i can format it better?
i hope this is the right place to be posting.
i am not using HTML, as i am writing to a text file.
any help will be greatly appriciated!