Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaureshpai/filetohtmlfileconvertor
HTML Converter: This Java program converts text files into HTML files, adding basic styling and including the filename as a heading.
https://github.com/gaureshpai/filetohtmlfileconvertor
html java
Last synced: 2 days ago
JSON representation
HTML Converter: This Java program converts text files into HTML files, adding basic styling and including the filename as a heading.
- Host: GitHub
- URL: https://github.com/gaureshpai/filetohtmlfileconvertor
- Owner: gaureshpai
- Created: 2024-02-08T21:16:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-10T07:35:30.000Z (3 months ago)
- Last Synced: 2024-11-10T08:24:33.317Z (3 months ago)
- Topics: html, java
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 6
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML Converter
This Java program converts a text file into an HTML file.
## Description
The `Main` class in this project takes input from a text file and generates an HTML file with the same content. It adds basic styling to the HTML file and includes the filename as a heading.
## Usage
1. **Input File**: Provide the path or filename of the text file you want to convert when prompted.
2. **Output File**: The program generates an HTML file with the same name as the input file but with the `.html` extension.## Prerequisites
- Java Development Kit (JDK) installed on your system.
- Eclipse IDE (or any Java IDE) for development.## How to Run
1. Clone this repository to your local machine.
2. Open the project in your preferred Java IDE.
3. Compile and run the `Main` class.
4. Follow the instructions to input the filename or path.## Example
Suppose you have a text file named `example.txt` with the following content:
```
Hello, world!
This is a sample text file.
```Running the program with `example.txt` as input will generate `example.html` containing the HTML representation of the text.
## Author
Gauresh
## License
This project is licensed under the [MIT License](LICENSE).