473,421 Members | 1,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

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

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
2 3273
gpraghuram
1,275 Expert 1GB
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
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

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

Similar topics

1
by: kunu601 | last post by:
hi my self uttam . i am working in r & d organization . friends i need a he lp from u . if any one of u know how add two sections(consisting of caption, header, footer ) be displayed on the same...
38
by: Sanders Kaufman | last post by:
I'm converting my table-based layouts to css-positioned divs - but the ONLY reason I'm doing it is because it's *considered* a best practice. I don't really see where anything goes hinky when...
1
by: sharan | last post by:
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. Want a c program on that in Linux environment....
1
by: sharan | last post by:
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format using C language. i am getting ouput serially but not in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.