just use terminal (bash language), do vim myprogram.c, do i (insert) and copy and paste your code, do escape (esc) and do ':wq' (save and quit), do gcc myprogram.c, and do vim myinput, do 'i' (insert) and put in your input, and do esc again, do ':wq", and do ./a.out < myinput. Easy!