Update File.hx

Modified to work based on this thread https://groups.google.com/forum/#!topic/Haxelang/hAdRR2--uwk