After finish displaying the text from the first text file, when I try to display the text from the second text file, it just display the text from first text file again. Below is the code.
char* cFilePath[2]
{
"Media/TextFile/Chapter2.txt",
"Media/TextFile/myFile2.txt"
};
agk:

penToRead(41, cFilePath[m_iSetFileNo]);
for (int i = 0; i < 30; i++)
{
m_sReadTextLine[i] = agk::ReadLine(41);
agk::CreateText(i, m_sReadTextLine[i].c_str());
agk::SetTextSize(i, 50);
SetTextPosition();
}
The m_iSetFileNo will add value 1 after it finish display the text from first text file.
How can I display text from second text file after displaying the text from first text file?
I am who I am