Using file as input to stdin when compiling
Jamie
jamieborder01 at gmail.com
Tue Feb 6 06:10:30 UTC 2018
Hi, I'm following through TDPL and am trying to import a txt file
during compiling for the stdin.byLine() function to read.
Currently I have
#!/usr/bin/rdmd <file.txt
.
.
.
foreach (line; stdin.byLine()) {
}
and would like it to analyse the supplied text file. Is this
possible in the way that I'm thinking, or is there another way?
Thanks
More information about the Digitalmars-d-learn
mailing list