0
Write a program that prints the name of its source file. REPL environments are not allowed for this challenge. Your code must work in any file that your language's interpreter will accept. Your answer must also be a full program, not just a function. The source code's file extension must be printed. Leading or trailing newline are both optional. This is a code golf, so shortest answer wins. The winner will be chosen on September 2nd, 2016.
1Possibly dupe of the cheating quine challenge? Idk though. – Rohan Jhunjhunwala – 2016-08-26T16:39:27.340
@Mego that question asks to actually reverse the charge filename in the file system. This is just printing the file name. So not a duplicate – vikarjramun – 2016-08-26T17:01:09.153
1@vikarjramun Reading the file name is a significant part of the challenge. This is a trivial subset of that challenge. – Mego – 2016-08-26T17:01:57.757