Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Display Text from Second Text File

Author
Message
Darknaruto
8
Years of Service
User Offline
Joined: 24th Aug 2015
Location:
Posted: 31st Aug 2015 16:15
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

Login to post a reply

Server time is: 2024-04-26 20:32:55
Your offset time is: 2024-04-26 20:32:55