<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>C++ Questions Archives - 123projectlab.com</title>
	<atom:link href="http://123projectlab.com/category/c-questions/feed/" rel="self" type="application/rss+xml" />
	<link>https://123projectlab.com/category/c-questions/</link>
	<description>Academic projects for MCA, BCA, B.Tech(CS/IT), MSc-IT, BSc-IT Final year student</description>
	<lastBuildDate>Tue, 29 May 2018 06:12:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://123projectlab.com/wp-content/uploads/2020/09/p-150x150.ico</url>
	<title>C++ Questions Archives - 123projectlab.com</title>
	<link>https://123projectlab.com/category/c-questions/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>File handling functions in C++</title>
		<link>https://123projectlab.com/file-handling-functions-in-c/</link>
					<comments>https://123projectlab.com/file-handling-functions-in-c/#respond</comments>
		
		<dc:creator><![CDATA[123ProjectLab]]></dc:creator>
		<pubDate>Tue, 29 May 2018 06:12:10 +0000</pubDate>
				<category><![CDATA[C++ Questions]]></category>
		<category><![CDATA[C++]]></category>
		<guid isPermaLink="false">http://123projectlab.com/?p=499</guid>

					<description><![CDATA[<p>File management is required everywhere. C++ makes its own database file in machine language and we use it according to our own convenience. Here all data input by the user is ... <a title="File handling functions in C++" class="read-more" href="https://123projectlab.com/file-handling-functions-in-c/" aria-label="Read more about File handling functions in C++">Read more</a></p>
<p>The post <a href="https://123projectlab.com/file-handling-functions-in-c/">File handling functions in C++</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>File management is required everywhere. C++ makes its own database file in machine language and we use it according to our own convenience. Here all data input by the user is treated like string. Sometimes we call it stream or flow of data.</p>
<p>First of all we know few functions which are used in file handling.</p>
<h2>These are basic File handling functions in C++</h2>
<p><strong>open</strong></p>
<p>Use of this function is to open many files to be used as continuous stream object. For example object.open(&#8220;filename&#8221;);</p>
<p><strong>close</strong></p>
<p>It is use for closing a file. For example object.close()</p>
<p><strong>getline</strong></p>
<p>This function access one line data. For example object.getline(Line, Size);</p>
<p><strong>eof()</strong></p>
<p>Use of this function is to know that content pointer inside a file is in last of the of the file. For example if(obj.eof())</p>
<p><strong>bof</strong></p>
<p>This is used to know that whether content pointer inside the file is in starting of data. For example if(obj.bof())</p>
<p><strong>seekg()</strong></p>
<p>The work of this function is to bring get pointer to a specific location. For example obj.seekg(5)</p>
<p><strong>seekp()</strong></p>
<p>This function brings put pointer to a specific location. For example obj.seekp(10)</p>
<p><strong>tellg()</strong></p>
<p>It brings get pointer to the correct location.</p>
<p><strong>tellp()</strong></p>
<p>It brings put pointer to the correct location.</p>
<p><strong>read()</strong></p>
<p>This function read data in binary format.</p>
<p><strong>write()</strong></p>
<p>This function write data in binary format.</p>
<p><strong>sizeof()</strong></p>
<p>It tells the size of data to be used.</p>
<p><strong>fail()</strong></p>
<p>It returns true if input or output operation in a file fails.</p>
<p><strong>itstream</strong></p>
<p>This type of object helps in reading data from file.</p>
<p><strong>ofstream</strong></p>
<p>This type of object helps in writing data in file.</p>
<p><strong>fstream</strong></p>
<p>This type of object helps in reading or writing from object file.</p>
<p>The post <a href="https://123projectlab.com/file-handling-functions-in-c/">File handling functions in C++</a> appeared first on <a href="https://123projectlab.com">123projectlab.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://123projectlab.com/file-handling-functions-in-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Database Caching 25/42 queries in 0.009 seconds using Disk

Served from: 123projectlab.com @ 2026-06-28 05:44:50 by W3 Total Cache
-->