MATLAB Answers

How can i save the text area characters to a text file in app designer?

15 views (last 30 days)
I need to save notes in the text area to a specific location. How to save the data using app designer?

  0 Comments

Sign in to comment.

Accepted Answer

Siriniharika Katukam
Siriniharika Katukam on 18 Feb 2020
Hi
To load text entered in text area of an app to a text file, you can do this in the callback function of text area.
value = app.TextArea.Value; % Value entered in textArea
f=fopen('a.txt','w');
formatSpec= "%s";
for i =1:length(value)
fprintf(f,formatSpec,value{i});
end
Hope this helps!

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by