/*	Read and Write File program. */

#include <iostream.h>
#include <fstream.h>

using namespace std;	// October 5, 2001

int main()
{
	fstream MyFile;
	MyFile.open("composer.txt", ios::in | ios::out);
	if (MyFile.fail()) {
		cout << "File could not be opened";
		return(0);
	}
	else {
		char Character;
		MyFile.seekg(4);            // Advance to character 4
		MyFile >> Character;    // Read character at get pointer
		MyFile.seekp(0);            // Move the put pointer to character 0
		MyFile << Character;    // Write the character at put pointer
		MyFile.close();
		return(0);
	}
}

