function stringOut = readStringFromTextFile(FileName)
% FileName is a string specifying the name of the text file.

% Read a string from a text file.

fid = fopen(FileName,'r');
stringOut = fgetl(fid);              % read an entire line from an open file
fclose(fid);
