fork download
  1. #include <cstdio>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. FILE* file = fopen("text", "wb");
  7. fprintf(file, "1\r\n");
  8. fprintf(file, "2\n");
  9. fprintf(file, "3\r");
  10. fprintf(file, "4\r\r");
  11. fprintf(file, "5\n\n");
  12. fprintf(file, "6\r\r\n");
  13. fprintf(file, "7");
  14. return 0;
  15. }
  16.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty