Revert "indicates the endline code for various environments"
This reverts commit f16a8b1658
.
time-shift
parent
d3e34711e3
commit
5c2a6b80eb
|
@ -107,21 +107,12 @@ fclose(fid);
|
|||
% Set newline code (ok for *nix, check for mac and windows)
|
||||
if isunix
|
||||
newline_code = 10;
|
||||
elseif ispc
|
||||
newline_code = 13;
|
||||
elseif ismac
|
||||
newline_code = 10;
|
||||
else
|
||||
error('readcsv:: Not implemented for your OS!')
|
||||
end
|
||||
|
||||
% Get the positions of the end-of-line code;
|
||||
end_of_line_locations = find(bfile==newline_code);
|
||||
if ispc && isempty(end_of_line_locations)
|
||||
newline_code=10;
|
||||
end_of_line_locations = find(bfile==newline_code);
|
||||
end;
|
||||
|
||||
tmp = find(bfile==newline_code);
|
||||
|
||||
% Get the number of lines in the file.
|
||||
|
@ -147,7 +138,7 @@ if withnames
|
|||
varlist = cell(length(B),1);
|
||||
number_of_variables = length(varlist);
|
||||
for i=1:number_of_variables
|
||||
varlist(i) = {strtrim(linee(B(i):C(i)))};
|
||||
varlist(i) = {linee(B(i):C(i))};
|
||||
end
|
||||
linea = linea+1;
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue