Socrates Level: Trainee
 Registered: 30-11-2004 Posts: 2
|
Formatting Output
Hi,
I am using VB6 to write an application which reads lines of numerical data from one file and writes some of it to another file. The data is read one line at a time using Line Input #1 and can be written using either Write #2 or Print #2. All data to be written is numeric (some Integer and some Single precision floating point), and I want the output to appear in neatly arranged columns. It must be comma delimited, right justified and all decimal numbers must be reported to two decimal places with trailing zeroes if necessary. Unfortunately, I cannot find a way to achieve this. I have tried using Format and Format$, embedded Tabs, Rset, and a few other dead ends. The problem appears to be so fundamental! Can anybody please help to set me in the right direction?
Thanks,
Steve
|