?
Solved

turning a file into a table

Posted on 1998-12-29
6
Medium Priority
?
153 Views
Last Modified: 2010-03-05
Is there anyway that I can take a raw file and spit it out on an HTML page.  ie. I want it to have headings for each field.  

CODE        DATE    MAKER    CHECKER   COMMENTS
Evaap16481  981105  billy    rsmith    shutdown
Evaap16557  981110  tonym    phild     n/a
Evaap16563  981124  larryf   rsmith    can't add secondary


That is what I want the output to look like. The headings are not part of the file.
0
Comment
Question by:clearcase
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1207216
How do you specify the format (how do you know the headings, where do columns start and end?

Martin
0
 

Expert Comment

by:saij
ID: 1207217
Perhaps you could give us an example of the file - a few records....
0
 

Author Comment

by:clearcase
ID: 1207218
Edited text of question
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:clearcase
ID: 1207219
Adjusted points to 100
0
 
LVL 5

Accepted Solution

by:
b2pi earned 200 total points
ID: 1207220
Always check CPAN first....

Take a look at

http://perl.com/cgi-bin/cpan_mod?module=Data::ShowTable

which will absolutely _not_ do your dishes.
0
 

Expert Comment

by:spreq
ID: 1207221
describe the format of your file... ascii plain text??
like this one?:
 
Evaap16481|981105|billy|rsmith|shutdown
Evaap16557|981110|tonym|phild|n/a
Evaap16563|981124|larryf|rsmith|can't add secondary
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question