getting a number from a text file
조회 수: 2 (최근 30일)
이전 댓글 표시
I have txt file with 1 number inside only, nothing else.
is there a way to get that number as a variable so that i can use an if statement on it, more specifically if an inputted number is greater than the number in the txt file.
댓글 수: 7
Star Strider
2021년 12월 5일
This just keeps getting more strange !
And keep watching for more yet to come!
Walter Roberson
2021년 12월 5일
filename = 'CashReserve.txt');
R = readmatrix(filename);
R = R - 1234.56;
writematrix(R, filename);
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!