User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Perl section within the Software Development category of DaniWeb, a massive community of 391,712 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,427 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Perl advertiser:
Views: 2361 | Replies: 4
Reply
Join Date: Jul 2005
Posts: 2
Reputation: edemko is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
edemko edemko is offline Offline
Newbie Poster

Help Generation html in perl

  #1  
Jul 27th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Troy
Posts: 1,276
Reputation: Rashakil Fol has a spectacular aura about Rashakil Fol has a spectacular aura about 
Rep Power: 7
Solved Threads: 36
Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Salamander Man

Re: Generation html in perl

  #2  
Jul 27th, 2005
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?
Reply With Quote  
Join Date: Jul 2005
Posts: 2
Reputation: edemko is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
edemko edemko is offline Offline
Newbie Poster

Re: Generation html in perl

  #3  
Jul 27th, 2005
Originally Posted by Rashakil Fol
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
Reply With Quote  
Join Date: Jun 2005
Location: Troy
Posts: 1,276
Reputation: Rashakil Fol has a spectacular aura about Rashakil Fol has a spectacular aura about 
Rep Power: 7
Solved Threads: 36
Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Salamander Man

Re: Generation html in perl

  #4  
Jul 27th, 2005
You have not yet described the format that your text documents follow. What do your text files look like? This matters.
Reply With Quote  
Join Date: Jul 2005
Posts: 1
Reputation: bprakkmr is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bprakkmr bprakkmr is offline Offline
Newbie Poster

Solution Re: Generation html in perl

  #5  
Aug 1st, 2005
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Perl Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Perl Forum

All times are GMT -4. The time now is 3:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC