Borrar filtros
Borrar filtros

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

29 visualizaciones (últimos 30 días)
Alessandro Togni
Alessandro Togni el 15 de Feb. de 2021
Comentada: Vladimir Kovalev el 3 de Abr. de 2022
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

Respuestas (1)

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

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by