For my GUI, how can I have one button open the file then the other buttons modify that file?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
How would I link the file I open to the other buttons?
Answers (1)
Walter Roberson
on 31 Aug 2015
handles.file_identifier = fopen('TheDestinationFile', 'w');
guidata(handles);
and then in the other routines, for example:
fprintf(handles.file_identifier, '%s\n', 'hello there we have been waiting for you');
3 Comments
shannon stoffel
on 1 Sep 2015
Walter Roberson
on 1 Sep 2015
Tell us about how you open the file.
shannon stoffel
on 1 Sep 2015
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!