Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display data in a text file in HTML page in Tabular format

Status
Not open for further replies.

pjeypal

Programmer
Apr 17, 2006
36
US
Hi

Can anyone suggest an easy way to display the data in a txt file in tabular format in HTML page dynamically

The content of text file is something like this

prompt
prompt List user information V8 @user
column c1 heading "User Information@100" format A30
column c2 heading "User ID@45" format 9999999990
column c3 heading "Account Status@45" format A17
column c4 heading "Default Tablespace@99" format A30
column c5 heading "Temporary Tablespace@102.6" format A30
column c6 heading "Profile@63" format A30


prompt
prompt List tablespace information @TSInfo
column c1 heading "Tablespace@77.4" format A30
column c2 heading "Block Size (k)@45" format 999999999999999990
column c3 heading "Initial Extent (k)@45" format 999999999999999999990
column c4 heading "Next Extent (k)@45" format 999999999999999990
column c5 heading "Min Extents (k)@45" format 999999999999999990
column c6 heading "Max Extents (k)@54" format 999999999999999990
column c7 heading "Percent Increase@72" format 9999999999999999990
column c8 heading "Contents@75.6" format A13
column c9 heading "Extent Management@72" format A20
column c10 heading "Segment Space Management@72" format A27
column c11 heading "Allocation Type@72" format A18


The first table has 6 columns and second one 11

In the first table, first column heading is "User Information" and value to be displayed under this column is 100

Second column heading is "User ID" and value to be displayed under this column is 45... and similarly for all columns

There might be many number of tables

Any idea how to do this

Thanks in advance
Priya
 
Write something which can read your file into some object model of your devising.

Write something which can take your object model and put out HTML formatted output in the tabular form you want.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top