MATLAB: Loading all files from a user specified folder into a gui

appgui

Hi,
Is there a way for a GUI to allow a user to select a folder of text files on their own computer and have the GUI work on all the txt files within that folder?
Best regards
Steve

Best Answer

x = uigetfile({'*.txt'});
fid = fopen(x);