Am trying to write to file, but nothing happends yet