<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Gerhard<br>
    <br>
    Would this work? Read as much as you need as binary and convert the
    non ascii values to an ascii value, for instance 0. <br>
    <br>
    The below is not optimized, and I have no idea why the strsplit is
    needed, but I got an "unknown error" without it:<br>
    <br>
    fid=mopen(datafile,"rb");<br>
    btr=1000;<br>
    B=mgeti(btr+1,"uc",fid);<br>
    for i=1:btr+1<br>
            if B(i)>128 | B(i)<32 then B(i)=48; end<br>
    end<br>
    S=strsplit(ascii(B),btr);<br>
    strData=S(1);<br>
    <br>
    <span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
      Helvetica, Arial, sans-serif; font-size: 13.44px; font-style:
      normal; font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);">[dataStart,dataEnd,dataMatch,data]=regexp(strData,'/#data#/')<span
        class="Apple-converted-space"> </span></span><br>
    ...<br>
    Jan Å<br>
  </body>
</html>