good question. If you want to force user to download this file try to set the header 'Content-disposition' to the value 'attachment; filename=tissue_dump.txt'
$r->content_type('text/plain')
$r->headers_out->set('Content-disposition' => 'attachment; filename=tissue_dump.txt');
worked.
Thanks Roman and John.