php-doc-en/reference/filesystem/functions/rewind.xml
anatoly techtonik bdbfbde58c "a+"ppend notes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185440 c90b9560-bf6c-de11-be94-00142212c4b1
2005-04-29 10:46:50 +00:00

58 lines
1.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.rewind">
<refnamediv>
<refname>rewind</refname>
<refpurpose>Rewind the position of a file pointer</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>rewind</methodname>
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
</methodsynopsis>
<para>
Sets the file position indicator for <parameter>handle</parameter>
to the beginning of the file stream.
</para>
<para>
&return.success;
</para>
<para>
The file pointer must be valid, and must point to a file
successfully opened by <function>fopen</function>.
</para>
<note>
<para>
If you have opened the file in append ("a" or "a+") mode, any data you write
to the file will always be appended, regardless of the file position.
</para>
</note>
<para>
See also <function>fseek</function> and
<function>ftell</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->