Like write_to but take care of creating the file

Property definitions

core :: file $ Writable :: write_to_file
	# Like `write_to` but take care of creating the file
	fun write_to_file(filepath: String)
	do
		var stream = new FileWriter.open(filepath)
		write_to(stream)
		stream.close
	end
lib/core/file.nit:366,2--372,4

nitc $ POFile :: write_to_file
	redef fun write_to_file(path) do
		if not path.has_suffix(".po") then path += ".po"
		super path
	end
src/frontend/i18n_phase.nit:195,2--198,4