By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,645 Members | 1,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,645 IT Pros & Developers. It's quick & easy.

Need help to conver HTML file to TXT file....

P: 10
Hello Everyone,

I need help to convert html file to Txt file,

If there is any tool or software please let me know

Regards
Santosh
Jan 5 '08 #1
Share this Question
Share on Google+
8 Replies


Jezternz
100+
P: 145
You dont need software to do this, all you have to do is rename the file from "filename.htm" to "filename.txt"
Jan 5 '08 #2

P: 10
You dont need software to do this, all you have to do is rename the file from "filename.htm" to "filename.txt"
Thank you for reply,
But I changed like that, But I am not getting sufficiant result.

Actually I need to traverse that file content and I want store that content in database( except tags).

Plz help me for this context.

Regards
Santosh
Jan 7 '08 #3

gits
Expert Mod 5K+
P: 5,343
hi ...

so that is mainly a serverside task ... or does the user enter more information before and you want to save the changes? ... could you explain the scenario in more detail? i think it covers some different problems that shoud be seperated out before ... and there are different options to do that ... but: saving to the DB would always involve a serverside script ... while traversing the document might be done at the client or the server ... but to recommend something the problem should be more clear ...

kind regards
Jan 7 '08 #4

P: 1
Hello Everyone,

I need help to convert html file to Txt file,

If there is any tool or software please let me know

Regards
Santosh
yes there is software that will convert your html file to txt the name of that software is HTMLtoRTF Converter Easy
Jan 7 '08 #5

P: 10
hi ...

so that is mainly a serverside task ... or does the user enter more information before and you want to save the changes? ... could you explain the scenario in more detail? i think it covers some different problems that shoud be seperated out before ... and there are different options to do that ... but: saving to the DB would always involve a serverside script ... while traversing the document might be done at the client or the server ... but to recommend something the problem should be more clear ...

kind regards

Hello friend,

Thank you for your reply...,

Now I am explaining the situaltion.

1. I have some html files, that file contains lot of information I need to traverse that and I want to store that information in database.

2. Presently I am converting html to xml and I am traversing the xml file
and the information in database.

3.Actually I want to convert html file to txt file so I can traverse easily.

Regards
Santosh
Jan 8 '08 #6

gits
Expert Mod 5K+
P: 5,343
hi ...

could you give an short example? i think you want to strip the html-tags out of the html-file and only want to save the text ... but in my opinion it dosn't make sense since you loose all semantic information that way except you wnat to store the entire text that resides when it is stripped ... how would you traverse a plain text?

kind regards
Jan 8 '08 #7

P: 10
hi ...

could you give an short example? i think you want to strip the html-tags out of the html-file and only want to save the text ... but in my opinion it dosn't make sense since you loose all semantic information that way except you wnat to store the entire text that resides when it is stripped ... how would you traverse a plain text?

kind regards
Hello friend

Here is sample code

"<TR
style="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffffff"
align=middle bgColor=#ffffff>
<TD>ADPI</TD>
<TD>AHG</TD>
<TD>ALK</TD>
<TD>AME</TD>
<TD>ARO</TD>
<TD>BAC</TD>
<TD>BBI</TD></TR>"
<TR ..............

like that we have more information in html file......

Actually I want to store that ADPI, AHG, ALK, etc values in database...

please let me know through mail

Regards
Santosh
Jan 10 '08 #8

P: 2
If you have any kind of WYSIWYG software (Microsoft Frontpage, Macromedia Dreamweaver, etc), you should just be able to open the html file in design view, then copy and paste the text. That will remove all the code, and leave you only the text.

Hello friend

Here is sample code

"<TR
style="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffffff"
align=middle bgColor=#ffffff>
<TD>ADPI</TD>
<TD>AHG</TD>
<TD>ALK</TD>
<TD>AME</TD>
<TD>ARO</TD>
<TD>BAC</TD>
<TD>BBI</TD></TR>"
<TR ..............

like that we have more information in html file......

Actually I want to store that ADPI, AHG, ALK, etc values in database...

please let me know through mail

Regards
Santosh
Jan 10 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.