I have a large txt file containing the filepaths for specified files.
Ex:
H:\Vicon_data\modified2AFC\Clarkson 2AFC\M29AA216\M29AA216afc01c1asfh_0000.3LA
My code:
%read the text file
fileID=fopen('Master_inventory.txt');inventory = textscan(fileID,'%s %*[^\n]');d = inventory{1};c = cellstr(d)
Result in command window:
'H:\Vicon_data\modified2AFC\Clarkson'
NOTE: The example path is one of +28000, which are distributed into different folders, so I can't go back and delete the spaces from the folder names.
Best Answer