<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>readb</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>April 1993</DATE>
  <SHORT_DESCRIPTION name="readb"> fortran file binary read</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>x=readb(file-name,m,n [,rec])  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>file-name</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: string or integer</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>m, n</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: integers (dimensions of the matrix x). Set m=-1 if you do not know the numbers of rows, so all the file is read</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>rec</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: vector of positive integers. the selected records for direct access. This vector size must be equal to the number of rows of desired <VERB>x</VERB>.</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    binary read of the matrix <VERB>x</VERB> in the file <VERB>file-name</VERB>.
    Matrix entries are supposed to have been stored on 8 byte words.</P>
    <P>
    For direct record access, file must have been previously opened using
    <VERB>file</VERB> function to set the record_length. <VERB>file-name</VERB> must be
    the result of the <VERB>file</VERB> function.</P>
  </DESCRIPTION>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>file</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>write</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>writb</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>mget</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>read4b</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
