SolidThinking Compose read files
Altair Forum User
Altair Employee
Answers
-
The following code gives a description of how to read data line by line in sT Compose.
file = 'small_indian_train_data.csv';
fid = fopen(file,'rt');
counter = 0;
% read file line by line
while ~feof(fid)
counter = counter + 1;
line = fgetl(fid);
sprintf('line %d in %s: %s',counter,file,line)
end
fclose(fid);0