open file and recognizes FNET or JMA