fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6. char str[256] = "/your/fixed/path/";
  7.  
  8. scanf("%s", str + strlen(str));
  9. puts(str);
  10. return 0;
  11. }
Success #stdin #stdout 0s 5512KB
stdin
something.txt
stdout
/your/fixed/path/something.txt