If with name of the program you mean the name of the file where the 
function is defined

 println(@__FILE__)

makes the job.

On Friday, April 8, 2016 at 10:53:14 AM UTC+2, Ferran Mazzanti wrote:
>
> Hi folks,
>
> probably a most stupid question here :) Is there a way to get a string 
> with the name of the Julia program one is running? 
> I ask because I usually write output files starting with a header stating 
> something like "# Results generated by the program " followed by the 
> program name. So how could I get the name of the program I'm running?
>
> Best regards and thanks,
>
> Ferran.
>

Reply via email to