Reading barrel position from a file.