%
% write_file.m
% 
% -MCW Fall 2016
%

myfile = fopen('exampledata.z', 'w');
if (myfile == -1)
    error('File open did not work.');
    return
end

fwrite(myfile, 'random data!', 'uchar');

if (fclose(myfile) == -1)
    
   error('File did not close');
end


