// // Examine the file for best file type. // // // From the online help: // --------------------- // // When enabled, VEDIT sets the best file type for each file opened. // // If a CR or LF is not found within the first 4096 bytes, // a binary/data file is assumed and "File type" is set to "64". // // If a lone LF (no preceding CR) is found, "File type" is set to "1"; // if a lone CR (no following LF) is found, "File type" is set to "2"; // // otherwise its CR+LF and "File type" is set to "0". // #103=64 Search_Block("|{|H0D,|H0A}",0,4096,BEGIN+NOERR) if(!EM){ if(CC==10){ #103=1 } else { if(CC(+1)==10){ #103=0 } else { #103=2 } } } Config( F_F_TYPE, "File type (*) (0=CR+LF, 1=LF, 2=CR, recsize)", #103 )