More HACMan stuff
Dependencies: FatFileSystem SDFileSystem mbed
Diff: txtFile.h
- Revision:
- 0:f433ff34d66b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/txtFile.h Thu Jun 11 13:49:01 2015 +0000 @@ -0,0 +1,34 @@ +#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 \ No newline at end of file