X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FIdentifyFile.java;h=e97ec40941ff4061ce7e2718535ac750c08f29dc;hb=72b6fde6eac94c8019ba8ce858640f1c8c41e23a;hp=024da61824bd52629872ae7e8e53c4ec78d63d0f;hpb=38c2f5336bb602570ab698985810b870fa7390de;p=jalview.git diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 024da61..e97ec40 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -126,15 +126,21 @@ public class IdentifyFile { reply = "BLC"; } - //Is this a single line BLC file? - data = reader.readLine(); - if(data!=null && data.length()==1) - { - reply = "BLC"; - } else { + //Is this a single line BLC file? + reader.readLine(); + String data2 = reader.readLine(); + if ( data2 != null + && data.indexOf("*")>-1 + && data.indexOf("*")==data2.indexOf("*")) + { + reply = "BLC"; + } + else + { reply = "FASTA"; + } } break;