added function to copy a file from an app to stdout