<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.swoole-funcs.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.swoole-async-readfile.php',
    1 => 'swoole_async_readfile',
    2 => 'Lee un fichero de manera as&iacute;ncrona',
  ),
  'up' => 
  array (
    0 => 'ref.swoole-funcs.php',
    1 => 'Funciones de Swoole',
  ),
  'prev' => 
  array (
    0 => 'function.swoole-async-read.php',
    1 => 'swoole_async_read',
  ),
  'next' => 
  array (
    0 => 'function.swoole-async-set.php',
    1 => 'swoole_async_set',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/swoole/functions/swoole-async-readfile.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.swoole-async-readfile" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">swoole_async_readfile</h1>
  <p class="verinfo">(PECL swoole &gt;= 1.9.0)</p><p class="refpurpose"><span class="refname">swoole_async_readfile</span> &mdash; <span class="dc-title">Lee un fichero de manera asíncrona</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.swoole-async-readfile-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>swoole_async_readfile</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">

  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.swoole-async-readfile-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">filename</code></dt>
    <dd>
     <p class="para">
      El nombre del fichero a leer.
     </p>
    </dd>
   
   
    <dt><code class="parameter">callback</code></dt>
    <dd>
     <div class="methodsynopsis dc-description">
       <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$content</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

      <dl>
       
        <dt><code class="parameter">filename</code></dt>
        <dd>
         <p class="para">
          El nombre del fichero.
         </p>
        </dd>
       
       
        <dt><code class="parameter">content</code></dt>
        <dd>
         <p class="para">
          El contenido leído del fichero.
         </p>
        </dd>
       
      </dl>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.swoole-async-readfile-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Esta función retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en caso de éxito o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si ocurre un error.
  </p>
 </div>


</div><?php manual_footer($setup); ?>