Skip to content

Commit

Permalink
Updating code and adding index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuali7536 committed Sep 16, 2021
1 parent 353cfae commit 5af1db6
Show file tree
Hide file tree
Showing 4 changed files with 1,401 additions and 0 deletions.
Binary file modified .vs/LennahSSG/v16/.suo
Binary file not shown.
Binary file modified .vs/LennahSSG/v16/Browse.VC.db
Binary file not shown.
3 changes: 3 additions & 0 deletions LennahSSG/LennahSSG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static void version_message() {
static void readTxt(string path) {
string line;
string title, line1, line2, line3;
bool hasTitle = false;

ifstream inputFile;
inputFile.open(path);
Expand Down Expand Up @@ -130,6 +131,7 @@ static void readTxt(string path) {

if (line1 != "" && line2 == "" && line3 == "") {
title = line1;
hasTitle = true;
}

outputFile << title;
Expand All @@ -141,6 +143,7 @@ static void readTxt(string path) {

outputFile << "<h1>" << title << "</h1>\n";


//Reading input file
string prevLine;
while (getline(inputFile, line)) {
Expand Down
Loading

0 comments on commit 5af1db6

Please sign in to comment.