Use ' getline var < file ' to read input from the file file , and put it in the variable var . As above, file is a string-valued ...
www.gnu.org