<?php
    $FileName = 'SamplePlot.txt';
    header('Content-type: text/plain');
    header('Content-disposition: attachment; filename="'.$FileName.'"');
    readfile($FileName);
?>