I want to take the below code and modify it, so that it reads the text from example.txt and then creates a variable for each character in that document, so if the .txt said, "Hello" the program should do

pos1=H;
pos2=e'
pos3=l;
pos4=l;
pos5=o;



Code:
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <conio.h>


int main()
{

	char str[100];
	ifstream b_file("example.txt");
	b_file.getline(str,100,'\n');
	cout << str << endl;
	b_file.close();
	getch();
	return 0;
}