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

Recommended Answers

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?

Jump to Post

All 4 Replies

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?

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.