clean up student file generation, read from stdin