<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt">
		<id>https://pt.arcowiki.com/index.php?action=history&amp;feed=atom&amp;title=Manipula%C3%A7%C3%A3o_de_arquivos</id>
		<title>Manipulação de arquivos - Histórico de revisão</title>
		<link rel="self" type="application/atom+xml" href="https://pt.arcowiki.com/index.php?action=history&amp;feed=atom&amp;title=Manipula%C3%A7%C3%A3o_de_arquivos"/>
		<link rel="alternate" type="text/html" href="https://pt.arcowiki.com/index.php?title=Manipula%C3%A7%C3%A3o_de_arquivos&amp;action=history"/>
		<updated>2026-04-11T05:15:34Z</updated>
		<subtitle>Histórico de edições para esta página nesta wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://pt.arcowiki.com/index.php?title=Manipula%C3%A7%C3%A3o_de_arquivos&amp;diff=101&amp;oldid=prev</id>
		<title>Slia: Criou a página com &quot;=='''Write to file'''&lt;br/&gt;== The command &lt;code&gt;WRITE/&lt;/code&gt; is used to write and store data in an open file.&lt;br/&gt; &lt;code&gt;&lt;span style=&quot;color: green; text-decoration: none;&quot;&gt;$...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pt.arcowiki.com/index.php?title=Manipula%C3%A7%C3%A3o_de_arquivos&amp;diff=101&amp;oldid=prev"/>
				<updated>2018-06-06T14:36:29Z</updated>
		
		<summary type="html">&lt;p&gt;Criou a página com &amp;quot;==&amp;#039;&amp;#039;&amp;#039;Write to file&amp;#039;&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;== The command &amp;lt;code&amp;gt;WRITE/&amp;lt;/code&amp;gt; is used to write and store data in an open file.&amp;lt;br/&amp;gt; &amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=='''Write to file'''&amp;lt;br/&amp;gt;==&lt;br /&gt;
The command &amp;lt;code&amp;gt;WRITE/&amp;lt;/code&amp;gt; is used to write and store data in an open file.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Example of Write Command&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/CHAR,50,filnm,elnm&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/INTGR,i&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/DOUBLE,xx,yy,zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;code&amp;gt;TEXT/QUERY,(filnm),50,A,L,'insert file name'&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;filnm=ASSIGN/CONCAT('C:\',filnm,'.TXT')&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DID(F1)=DEVICE/STOR,filnm&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ This is to create some dummy points.&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;F(POI_1)=FEAT/POINT,CART,  1.111,2.222,3.333,    0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;F(POI_2)=FEAT/POINT,CART,  4.444,5.555,6.666,    0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;F(POI_3)=FEAT/POINT,CART,  7.777,8.888,9.999,    0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;FA(POI_1)=FEAT/POINT,CART,  1.111,2.222,3.333,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;FA(POI_2)=FEAT/POINT,CART,  4.444,5.555,6.666,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;FA(POI_3)=FEAT/POINT,CART,  7.777,8.888,9.999,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ This row opens the file as an output device.&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;OPEN/DID(F1),DIRECT,OUTPUT,OVERWR&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;DO/i,1,3&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Get the values from points&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
::::::&amp;lt;code&amp;gt;	elnm=ASSIGN/CONCAT('poi_',STR(i))&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;	xx=OBTAIN/FA(@elnm),3&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;	yy=OBTAIN/FA(@elnm),4&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;	zz=OBTAIN/FA(@elnm),5&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::::::&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Write command writes in the output file the required values&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
::::::&amp;lt;code&amp;gt;	WRITE/DID(F1),xx&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;	WRITE/DID(F1),yy&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::::&amp;lt;code&amp;gt;	WRITE/DID(F1),zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;ENDDO &amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;CLOSE/DID(F1)&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=='''Read from file'''&amp;lt;br/&amp;gt;==&lt;br /&gt;
The command &amp;lt;code&amp;gt;READ/&amp;lt;/code&amp;gt; is used to get a value from an open file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Example of Read command&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/CHAR,50,filnm, result&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/CHAR,50,xyz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DECL/DOUBLE,xx,yy,zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;TEXT/QUERY,(filnm),50,A,L,'insert file name'&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;filnm=ASSIGN/CONCAT('C:\',filnm,'.TXT')&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;DID(F1)=DEVICE/STOR,filnm&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ This row opens the file as an input device.&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;OPEN/DID(F1),DIRECT,INPUT&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Read command reads values from the input file and declare a point&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),xx&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),yy&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;F(POI_10)=FEAT/POINT,CART,   xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;FA(POI_10)=FEAT/POINT,CART,  xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Read command reads values from the input file and declare a point&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),xx&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),yy&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;F(POI_20)=FEAT/POINT,CART,   xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;FA(POI_20)=FEAT/POINT,CART,  xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::::&amp;lt;code&amp;gt;&amp;lt;span style=&amp;quot;color: green; text-decoration: none;&amp;quot;&amp;gt;$$ Read command reads values from the input file and declare a point&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),xx&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),yy&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;READ/DID(F1),zz&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;F(POI_30)=FEAT/POINT,CART,   xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;FA(POI_30)=FEAT/POINT,CART,  xx,yy,zz,   0,0,0&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;result=ASSIGN/CONCAT(STR(xx),' , ',STR(yy),' , ',STR(zz))&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;TEXT/OPER,result&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;CLOSE/DID(F1)&amp;lt;br/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[it:Gestione dei file]]&lt;br /&gt;
[[zh-cn:文件处理]]&lt;br /&gt;
[[pt:Manipulação de arquivos]]&lt;br /&gt;
[[de:Dateiverarbeitung]]&lt;br /&gt;
[[es:Manejo de archivos]]&lt;br /&gt;
[[en:File Handling]]&lt;/div&gt;</summary>
		<author><name>Slia</name></author>	</entry>

	</feed>