opening file and filestream