cut source code to some file