Convert all .txt files in a folder to .csv

User: "PaolaAG"
Altair Employee
Updated by PaolaAG

Hello!

I have multiple .txt files in a folder and I want to convert them all to .csv. I am trying this way but it didn't work, thank you!

image

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "João Marabisa"
    Altair Employee
    Accepted Answer
    Updated by João Marabisa

    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