Advertisement
Guest User

Untitled

a guest
Nov 24th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5.  
  6.  
  7. int main() {
  8.  
  9. char username[15], password[20];
  10.  
  11.  
  12. FILE *f;
  13. f = fopen("login.txt", "w");
  14.  
  15. fprintf("Introduza o username: ");
  16. scanf(" %s", username);
  17.  
  18. fprintf("Introduza a password: ");
  19. scanf(" %s", password);
  20.  
  21. fclose(f);
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement