How to convert .txt file to .dat?
61 views (last 30 days)
Show older comments
I created a text file in matlab and wrote my data on it. Now I need to convert this text file to .dat. How should I do this?
3 Comments
Answers (1)
Walter Roberson
on 19 Sep 2018
You can call movefile() if all you need is to change the file extension.
You can probably just change the code to open a .dat for writing instead of .txt but that depends on how the code creates the file.
0 Comments
See Also
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!