View Single Post
Old 12 September 2012, 07:02   #8
alphagemini
Registered User
 
Join Date: Nov 2011
Location: Folkestone, Kent
Posts: 119
Quote:
Originally Posted by Leffmann View Post
You can achieve both tabulation and fixed-width lines if you write your data with the print using-statement, f.ex:

Code:
print #1, using "### ### ### \    \", x, y, 10, "test"
The # specifies where you want to fit digits and the \\ including the space in between specifies where you want strings. These are the only formatting specifiers I remember off the top of my head.

Do you have the v2.0 manual btw? I'd like to add it to my own files but can't find a download anywhere.

EDIT: if the lines in your file are already sorted, and you're not doing anything else with the file but reading it in to group the lines and print them, then you can probably do this in one go and print as you read.

Yes I have the original manual in hard copy. I find it hard to use because I'm not really a programmer. I'm just starting to learn but have a research
project to complete. I shall try your advice. Thanks for your help
alphagemini is offline  
 
Page generated in 0.07434 seconds with 11 queries