your_function( $string, \*INPUT, '/tmp/somefile' );