By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,540 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

How to print the data in the tabular format...

P: 17
Hi,

I am trying to print the values of a file in the tabular format...

The contents of the file are :-

TILE 1:
Serial Number: 1
Model Number: 110A
Hardware Rev: 220A
PCB Rev: 330A
TILE 2:
Serial Number: 2
Model Number: 110B
Hardware Rev: 220B
PCB Rev: 330B
TILE 3:
Serial Number: 3
Model Number: 110C
Hardware Rev: 220C
PCB Rev: 330C
TILE 4:
Serial Number: 4
Model Number: 110D
Hardware Rev: 220D
PCB Rev: 330D

I need to display like this in the tabular format...

Tile 1 Tile2 Tile3 Tile4
-------------------------------------------------------------------------
serial no
model no
Hardware no
pcb no


I stuck here.... could any one plz help me to move forward.

Thanks & Regards...
Oct 8 '07 #1
Share this Question
Share on Google+
2 Replies


gpraghuram
Expert 100+
P: 1,275
Hi,

I am trying to print the values of a file in the tabular format...

The contents of the file are :-

TILE 1:
Serial Number: 1
Model Number: 110A
Hardware Rev: 220A
PCB Rev: 330A
TILE 2:
Serial Number: 2
Model Number: 110B
Hardware Rev: 220B
PCB Rev: 330B
TILE 3:
Serial Number: 3
Model Number: 110C
Hardware Rev: 220C
PCB Rev: 330C
TILE 4:
Serial Number: 4
Model Number: 110D
Hardware Rev: 220D
PCB Rev: 330D

I need to display like this in the tabular format...

Tile 1 Tile2 Tile3 Tile4
-------------------------------------------------------------------------
serial no
model no
Hardware no
pcb no


I stuck here.... could any one plz help me to move forward.

Thanks & Regards...

You have to use fprints for this and can u be more clear where u are stuck so that i can help u on it
Thanks
Raghuram
Oct 8 '07 #2

P: 17
You have to use fprints for this and can u be more clear where u are stuck so that i can help u on it
Thanks
Raghuram


whether I should create one more temparory file and copy each and every line with the help of fseek .... or is there any alternative way to do this...

Thanks for your reply ...
Oct 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.