Opening txt files using fopen, and fgetl in my executable program is bugging out. Any ideas?
조회 수: 1 (최근 30일)
이전 댓글 표시
When i run the program just straight out of matlab it works fine. In the program there are many occasions where i use fgetl, and fopen. For some reason, my code seems to be bugging out at these locations when i try and run the same program as a console application (compiled matlab .exe file). I would just like to know if there is a way around this problem or something?
댓글 수: 3
Rik
2020년 10월 28일
Without explicit step to reproduce this, it is difficult to offer any advice other than: limit file interactions to a single part of your code.
Leslie Smith
2020년 10월 28일
found my problem, the fopen (before the fgetl) referred to a file that was not included in the 'files required for your application to run' section.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!