Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <string.h>
  2. #include <stdio.h>
  3. #include <time.h>
  4.  
  5. void aexport(const char * writeMe, const char * location) {
  6. FILE * _writeTo;
  7. _writeTo = fopen (location, "a");
  8. fputs(writeMe, _writeTo);
  9. }
  10.  
  11. void intToChar(long int _int, const char * ) {
  12.  
  13. }
  14.  
  15. int main() {
  16. std::string sentence;
  17. string fileMark = "newFile";
  18. printf ("Enter something: ");
  19. fgets (sentence,256,stdin);
  20. if (sentence == fileMark) {
  21. long int * _temp;
  22. time(_temp);
  23. //sentence = char(_temp)[256];
  24. printf ("Time");
  25. }
  26. aexport(sentence, "ASDF.txt");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement