function result = loadtext(filename)

fid = fopen(filename,'r');
result = '';
while(~feof(fid))
    result = strcat(result,fgets(fid));
end