For debugging working directory is the ROOT. so no need to use full path the open file.
Added some more comments. put command is now working correctly.
ik file is in Kb size show Kb size.