Import data from bpmn file into one string/char value Matlab

Hello,
I have a consistent bpmn file (similar to xml file) and i would like to read it with matlab and store the all file data in one string or char attribute. I have tried with
textread(file, format)
but the best i can have is a 2358796x1 char and then assemble each line to recreate the file but it's a very long process.
Is there another function to do this ?
Thanks for helping.

2 Kommentare

hello
have you tried with readlines ?
Well i think i have a too old matlab version, this function is undefined for me.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Stephen23
Stephen23 am 25 Jan. 2021
The simple solution:
str = fileread(...);

1 Kommentar

Well indeed it works, i was sure i have tested this solution before.
Thank you !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Software Development finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 22 Jan. 2021

Kommentiert:

am 25 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by