Thanks for any help! First off, i have a text file, text.txt, saved in my matlab folder. I would like to read this file, and have the text displayed when i run the program. I also only want to display up to a certain point in the text with the word Goal.
fid = fopen('text.txt', 'r+');
fprintf(fid, '%s');
fclose(fid);
This is my first part, without displaying up to the certain point of text. What i think i did was open up the file for reading, then print the document, then close the file. I don't get any errors or anything, but also don't see the document getting reprinted. Any ideas on how to get it printed would help!