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
Solved

turning a file into a table

Posted on 1998-12-29
6
145 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

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

Accepted Solution

by:
b2pi earned 100 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

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…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…

860 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