App Designer: Display content of a txt file on a text area

조회 수: 18 (최근 30일)
Alessandro Togni
Alessandro Togni 2021년 2월 15일
댓글: Vladimir Kovalev 2022년 4월 3일
Hi,
the GUI i'm currently working on read a 2-columns file from txt and i want to show those values (numeric) on a text area mantining the columns separated.
Any suggestion will be very appreciated,
thank you.
Alessandro

답변 (1개)

Mario Malic
Mario Malic 2021년 2월 15일
Hello,
Try this and see if the output is correct.
app.TextString = fileread('file.txt');
app.TextArea.Value = app.TextString;

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by