read_file read all
I'm trying to write a plugin that will read whole .txt files and all its contents and convert the .txt file content into .html or .htm for the web but my problem is read_file and write_file obligates you to specify a const text.
How do I set it so that it reads and write the whole line not just a specific position on the line? Heres a general concept of what im trying to do: Reads each line in a text file filename.txt Code:
Content line 1HTML Code:
</head> |
Re: read_file read all
|
Re: read_file read all
It should be fairly simple. Write header content in .html file, read from txt file, format with HTML, write formated text to .html file, repeat, write footer html.
|
| All times are GMT -4. The time now is 14:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.