function x = openfile(filename)
% openfile(filename)
%	This function simply opens a file of the given filename (filename must include, of 
%	course, the directory path). If the file can't be opened, an error message is
%	returned and the function returns 0. Otherwise, it returns 1. 

fid = fopen(filename,'r')
