Skip to main content

Command Palette

Search for a command to run...

Day 15/100 100 Days of Code

Info hunter

Published
1 min read
Day 15/100 100 Days of Code
C

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.

He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.

We have reached day 15! Today, I added the code to write the paragraphs containing keywords to a text file. Currently, the text file is emptied before each operation.

std::ofstream contentFile;
    contentFile.open("../content/content.txt");

    if (!contentFile.is_open())
    {
        std::cout << "Failed to open file" << std::endl;
        std::cout << std::strerror(errno) << std::endl;
        exit(errno);
    }

    contentFile << input << std::endl;

            if (keywordsFound)
            {
                contentFile << toString << std::endl;
                keywordsFound = false;
            }

100 Days of Code

Part 15 of 50

100 days of code is a good initiative to go into hard mode and spend more time in programming. These 100 days will be focused on completing projects and research.

Up next

Day 16/100 100 Days of Code

Info Hunter