Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- #include <time.h>
- void aexport(const char * writeMe, const char * location) {
- FILE * _writeTo;
- _writeTo = fopen (location, "a");
- fputs(writeMe, _writeTo);
- }
- void intToChar(long int _int, const char * ) {
- }
- int main() {
- std::string sentence;
- string fileMark = "newFile";
- printf ("Enter something: ");
- fgets (sentence,256,stdin);
- if (sentence == fileMark) {
- long int * _temp;
- time(_temp);
- //sentence = char(_temp)[256];
- printf ("Time");
- }
- aexport(sentence, "ASDF.txt");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement