<?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>upper case | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/upper-case/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 13 Mar 2010 18:14:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C++ program to copy one file to anothere file</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-copy-one-file-to-anothere-file/</link>
					<comments>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-copy-one-file-to-anothere-file/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 13 Mar 2010 18:14:35 +0000</pubDate>
				<category><![CDATA[Advanced programs]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[File operations]]></category>
		<category><![CDATA[c++ files]]></category>
		<category><![CDATA[lower case]]></category>
		<category><![CDATA[upper case]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1073</guid>

					<description><![CDATA[<p>AIM A program to copy one file to another file and convert the lower case characters to upper case characters. ALGORITHM 1) Start the process 2) Create the input file and out put file. 3) Get the input file name to fname1. 4) Get the output file name to fname2. 5) Open the infile(fanme1) 6)</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-copy-one-file-to-anothere-file/">C++ program to copy one file to anothere file</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM</strong><br />
	A program to copy one file to another file and convert the lower case characters to upper case characters.</p>
<p><strong>ALGORITHM </strong></p>
<p>1)	Start the process<br />
2)	Create the input file and out put file.<br />
3)	Get the input file name to fname1.<br />
4)	Get the output file name to fname2.<br />
5)	Open the infile(fanme1)<br />
6)	Check if infile.fail()<br />
a)	True:<br />
i)	Execute error conversion<br />
ii)	exit<br />
7)	open the outfile(fanme2)<br />
8)	check if outfile.fail()<br />
a)	repeat step(6:a)<br />
9)	check while infile.eof()<br />
a)	True:<br />
i)	 Ch?(char)infile.get()<br />
10)	Close both files<br />
11)	Stop the process.</p>
<p><strong>PROGRAM :</strong></p>
<pre lang="cpp">
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
#include<stdlib.h>
#include<ctype.h>
#include<fstream.h>

void main( )
{
	ofstream outfile;
	ifstream  infile;
	char fname1[10],fname2[20];
	char ch,uch;
	clrscr( );
	cout<<"Enter a file name to be copied ";
	cin>> fname1;
	cout<<"Enter new file name";
	cin>>fname2;
	infile.open(fname1);

if( infile.fail( ) )
	{
		cerr<< " No such a file Exit";
		getch();
		exit(1);
	}
	outfile.open( fname2);
		if(outfile.fail( ))
		{
			cerr<<"Unable to create a file";
			getch();
			exit(1);
		}
	while( !infile.eof( ) )
	{
		ch = (char) infile.get( );
		uch = toupper(ch);
		outfile.put(uch);
	}
	infile.close( );
	outfile.close( );
	getch( );
}
</pre>
<p><strong>OUTPUT:</strong></p>
<p>	Enter a file name to be copied.<br />
		C:\text1.txt<br />
	Enter new file name<br />
		D:\new.txt</p>
<p>Input file<br />
		Asbcdefghijklmnopqrstuvwxyz<br />
Output file<br />
		ASBCDEFGHIJKLMNOPQRSTUVWXYZ</p><p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-copy-one-file-to-anothere-file/">C++ program to copy one file to anothere file</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-copy-one-file-to-anothere-file/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
