Full function look like this:

auto parseConfig()
{
        auto config = Ini.Parse(getcwd ~ "\\" ~ "config.ini");
        string txtlinks = getcwd ~ "\\" ~ config.getKey("input_links");
        if(!exists(txtlinks))
        {
                writeln("Can't find input file with list of links.");
                return;
        }
        auto lines = File(txtlinks, "r").byLine;
        return lines;

}

Reply via email to