This preview shows page 1. Sign up to view the full content.
Unformatted text preview: xlswrite-inputs: [name of file, cell array] Low Level File IO: fid = fopen(filename,purpose) purpose: r-read, w-write, a-append to read through the file: fgets(fid) - returned first line in the file with the line ender fgetl(fid) - returns the next line, but without the line ender (most commonly /n)-if you try to run it after the end of the file, '-1' is outputed to read words in each line: [token rest] = strtok(line, ' ')-saves up to the first delimitor as a token-saves the rest of the line as a string write text to a file: fprintf(fid)-writes the text to a file fclose(fid)-closes file...
View Full Document
This note was uploaded on 08/28/2011 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.
- Fall '08