Error: cannot return non-void from void function
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 27 05:07:58 PST 2014
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;
}
More information about the Digitalmars-d-learn
mailing list