Read a file extension and change that extension
<p>I want to read a file name like 'images/aa.jpg'. I want to change that file extension .jpg to .png. If another file having the same name means overwrite that file. </p>
