read text files of unregular file types using fgets / fgetl
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I Have a *.gps file which is opened in notepad++ as a text file. If I change it to a .csv ot .txt file I can read rows properly with fgets or fgetl functions.
The problem is, that in my application I can't change this file type during code run, and fgets/fgetl returns only "-1".
Any suggestions?
Thanks,
Ido
6 Kommentare
Walter Roberson
am 6 Mai 2019
fgets and fgetl error if the file could not be opened. -1 is returned when eof has been reached.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!