Add function for reading single line value