<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24fgetc</id>
	<title>$fgetc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24fgetc"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$fgetc&amp;action=history"/>
	<updated>2026-06-04T03:25:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$fgetc&amp;diff=4467&amp;oldid=prev</id>
		<title>Doomie at 18:43, 19 December 2005</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$fgetc&amp;diff=4467&amp;oldid=prev"/>
		<updated>2005-12-19T18:43:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the next character.&lt;br /&gt;
 $fgetc(name | N)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$fgetc automatically moves the pointer to the next character if used.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Let&amp;#039;s assume we have a text file called &amp;#039;&amp;#039;moo.txt&amp;#039;&amp;#039; in our mircdir. It has the following content:&lt;br /&gt;
 one&lt;br /&gt;
 two&lt;br /&gt;
 three&lt;br /&gt;
Let&amp;#039;s also assume we have opened it using the following command: &amp;#039;&amp;#039;[[fopen]] moo moo.txt&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[echo]] -a $fgetc(moo)&lt;br /&gt;
Would return the first character of the first line (&amp;#039;&amp;#039;o&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[while]] (!$feof(moo)) {&lt;br /&gt;
  echo -a $fgetc(moo)&lt;br /&gt;
 }&lt;br /&gt;
This would echo the ascii value of every char in the file moo.txt, as the pointer will moved to the next char everytime $fgetc will be used.&lt;br /&gt;
&lt;br /&gt;
[[Category:File Handling]]&lt;/div&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
</feed>