separate file_select.cpp from export.cpp
cleanup 12

remove redundant #include
change `inp == 0` to `inp < 1`