logfile = file_text_open_read("MB_Log.bnb");

global.mb_total[0] = 0;
global.mb_total[1] = 0;

//Assign all board info:
while(1)
{
tempstr = file_text_read_string(logfile);
if(tempstr != "@TOPIC")
{
global.mb_board[global.mb_total[0]] = tempstr;
global.mb_total[0] += 1;
file_text_readln(logfile);
}
else
{
file_text_readln(logfile);
break;
}
}

//Assign all topic info:
while(1)
{
tempstr = file_text_read_string(logfile);
if(tempstr != "@REPLY")
{
global.mb_topic[global.mb_total[1],0] = tempstr;
file_text_readln(logfile);
global.mb_topic[global.mb_total[1],1] = file_text_read_real(logfile);
file_text_readln(logfile);
global.mb_topic[global.mb_total[1],2] = file_text_read_real(logfile);
global.mb_total[1] += 1;
file_text_readln(logfile);
}
else
{
file_text_readln(logfile);
break;
}
}

//Write all reply info:
for(i = 0; i < global.mb_total[1]; i += 1)
{
for(j = 0; j < global.mb_topic[i,1]; j += 1)
{
global.mb_reply[i,j] = file_text_read_string(logfile);
file_text_readln(logfile);
}
}

file_text_close(logfile);