filename='~lecjm/verycomplicateddata.dat' length_filename=strlen(filename) base=strmid(filename,0,length_filename-4) output_file=base+'_simple_plot.eps' print,output_file
...and that's it. I hope you enjoy using IDL and that this course has made learning it a little easier.