
begin;


begin_pcl;

string input_file_name;
input_file videoNames;
output_file fExpRes;
array< string > VideoFileNames[0][0];

int Nsessions = 2
input_file_name = "originals\\originals_list.txt";
fExpRes.open("output\\gu.txt" );

int vidPerSess = 0;
string strFileName;
videoNames.open( input_file_name );
VideoFileNames.resize( nSessions );

loop 	int i = 1
until videoNames.end_of_file() # parse text file
begin
	term.print_line(i);
	loop int j = 1
	until j <=Nsessions
	begin
		strFileName = videoNames.get_line();
		VideoFileNames[j].resize( i );
		VideoFileNames[j][i] = strFileName;
		j = j+1;
	end;
	i = i + 1;
			
end;
		
VideoFileNames[1].shuffle();
VideoFileNames[2].shuffle();
		
#imgsPerGroup = iNameCount;
videoNames.close();

a = VideoFileNames.count();

loop
	int aa = 1
until aa <= a
begin
	term.print_line("A");
	loop 
		int bla = VideoFileNames[aa].count();
		int bb = 1;
	until bb <=bla
	begin
		fExpRes.print(VideoFileNames[aa][bb]);
		fExpRes.print("\n");
		bb = bb+1;
	end;
aa = aa + 1;
fExpRes.print("\n");
end;
	fExpRes.close();
