#include <iostream>
#include <fstream>
#include <string>;
using namespace std;
//...
ifstream File;
string Weapon1;//We will save our data in this string
File.open("file.txt", ios_base::in);
if(File)
{
//Opened the file
getline(File, Weapon1);//Read the data and save it in our string
}
else
{
//Couldn't open the file
}




