Implement getline function.
Modify config file module to use getline.