I was using to read data from my files like this
/*text.txt*/
3
./Files/Maps/Map1.txt
./Files/Maps/Map2.txt
./Files/Maps/Map3.txt
FILE* tempFile = fopen("text.txt", "r");
if(tempFile == NULL)
{
fclose(tempFile);
}
fscanf(tempFile, "%d", &MyInt);
for(int x = 0; x < MyInt; x++)
{
char tempChar[60];
fscanf(tempFile, "%s\n", tempChar);
MyVector.push_back(tempChar);
}
But its really bugging me that i am limited to "char" cause the fscanf "%s" cant store to string.
What libraries can i use to read data from .txt files to string directly , and hopefully are simple to use