Changeset 0f7a85 for molecuilder/src/periodentafel.cpp
- Timestamp:
- Jul 24, 2008, 1:56:00 PM (17 years ago)
- Children:
- b3eb8e
- Parents:
- ed5f58
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/periodentafel.cpp
red5f58 r0f7a85 303 303 /** Stores element list to file. 304 304 */ 305 bool periodentafel::StorePeriodentafel(char * filename) const305 bool periodentafel::StorePeriodentafel(char *path) const 306 306 { 307 307 bool result = true; 308 308 ofstream f; 309 char file [MAXSTRINGSIZE];310 311 if (filename == STANDARDELEMENTSDB)312 f.open(file);313 else314 309 char filename[MAXSTRINGSIZE]; 310 311 strncpy(filename, path, MAXSTRINGSIZE); 312 strncat(filename, "/", MAXSTRINGSIZE-strlen(filename)); 313 strncat(filename, STANDARDELEMENTSDB, MAXSTRINGSIZE-strlen(filename)); 314 f.open(filename); 315 315 if (f != NULL) { 316 316 f << header1 << endl;
Note:
See TracChangeset
for help on using the changeset viewer.