954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Generation html in perl

hello

I have a problem:
I can't generate a html from a text file. :o
There is a text file : one.txt (or dat or something else ) and I want to generate a html, called one.html or the name can be the first word in the text file.
Please help :rolleyes:

Thx

p.s: Sorry for some failure in my text I can't speak and write so good in english

edemko
Newbie Poster
2 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

What rules do you want to use for generating the HTML? How is your text file formatted? Do you just want empty lines to divide paragraphs?

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 
What rules do you want to use for generating the HTML? How is your text file formatted? Do you just want empty lines to divide paragraphs?


It is a txt file(2Mb) and I want to see this all in html. But in 2 forms. Left side : links : the paragraphs title
right side : the text of this paragraphs

edemko
Newbie Poster
2 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

You have not yet described the format that your text documents follow. What do your text files look like? This matters.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 

hi all you have to do is

- read text file (open something.txt and read)
- write it in html file (open something.html and write)

there are lots of way to do.. it is just how you want it done.

Jim
perl programmer
eSiteGuru.Com

bprakkmr
Newbie Poster
1 post since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You