Info
此问题已关闭。 请重新打开它进行编辑或回答。
For my GUI, how can I have one button open the file then the other buttons modify that file?
1 次查看(过去 30 天)
显示 更早的评论
How would I link the file I open to the other buttons?
0 个评论
回答(1 个)
Walter Roberson
2015-8-31
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!