function testWrite(fout)
% testWrite(fout)
%
% function testWrite opens a file, writes a string of text,
% and closes the file.
%
% Inputs:
%      string fout is the file name (e.g. tmp.txt)
% Outputs:
%      file with name fout
%
% AH 2012.11.17
%
fp=fopen(fout,'w');
fprintf(fp,'Hello world! \n');
fclose(fp);

    
