![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
More HACMan stuff
Dependencies: FatFileSystem SDFileSystem mbed
txtFile.h
- Committer:
- TBSliver
- Date:
- 2015-06-11
- Revision:
- 0:f433ff34d66b
File content as of revision 0:f433ff34d66b:
#ifndef TXTFILE_H #define TXTFILE_H #include "mbed.h" #include "SDFileSystem.h" #include <string> #include <stdio.h> #include <stdlib.h> class TxtFile { public: //constructor and deconstructor TxtFile(char fileAddr[], char *readWrite); ~TxtFile(); //returns whether a file is open or not bool isOpen(); //done //closes the file and returns true if successful bool closeFile(); int frameTime(int frame); int totalFrames(); char getChar(int seek); private: FILE *fp; bool isFileOpen; //value representing if the file is open or not }; #endif