Changed general file descriptors to specific for CDU
Dependents: CDUFinal CDU_Mbed_36
Fork of ConfigFile by
Diff: ConfigFile.cpp
- Revision:
- 4:940510a29b44
- Parent:
- 3:7250e339328c
- Child:
- 5:56d544b8e5c6
--- a/ConfigFile.cpp Sun Sep 12 07:37:25 2010 +0000 +++ b/ConfigFile.cpp Sun Sep 12 07:53:10 2010 +0000 @@ -250,7 +250,7 @@ return true; } -bool ConfigFile::write(char *file, FileFormat ff) { +bool ConfigFile::write(char *file, char *header, FileFormat ff) { /* * Open the target file. */ @@ -279,6 +279,13 @@ } /* + * Write the header. + */ + if (header != NULL) { + fprintf(fp, "%s%s", header, newline); + } + + /* * Write the data. */ for (int i = 0; i < MAXCONFIG; i++) {