Working connection to a file