lundi 11 septembre 2017

I am having trouble getting my program that creates html templates each time it is ran.

I am writing a program in java that creates an HTML template each time it is ran. It reads the input bio txt file that is made up of four headings and paragraphs one line each. It takes the txt and stores the headings and paragraphs into a parallel array. I then have the array written into an HTML file. The problem is that when I run it there is no input onto the file and it also says that the reader is never closed. Here's my program and output. Thank you for any suggestions.

<!DOCTYPE html> 
<html>
<head>
<meta charset="ISO-8859-1">
<title>My LIfe</title><style> 
h1 {text-align:center;} 
</style> 
</head>  
<body></body></html>

Here is my bio.txt input file

[h1] Who Am I?
My name is Billy. I am a senior CS major.
[h1] What are my interests?
I would like to develop my skillset in software and web development and possibly start a career in it.
[h1] Why am I taking this class?
I am taking this class because I'd like to enhance my web development skills.
[h1] What is my five year plan?
My five year plan is to graduate with my CS major and earn a great job that I enjoy.




Aucun commentaire:

Enregistrer un commentaire