file_pointer / shared_resource
filewrite use file_pointer ?