Convert all .txt files in a folder to .csv

PaolaAG
Altair Employee

Best Answer
-
Hi Paola,
Please give a try with the script below for your loop:
for id = 1:numel(FileList) [~, f,ext] = fileparts(FileList(id).name); rename = strcat(f,'.csv') ; movefile(FileList(id).name, rename); end
1
Answers
-
Hi Paola,
Please give a try with the script below for your loop:
for id = 1:numel(FileList) [~, f,ext] = fileparts(FileList(id).name); rename = strcat(f,'.csv') ; movefile(FileList(id).name, rename); end
1 -
It works! Thank you
0