Unable to process big .txt file.
Hello,
I have tested a log file from an app and it is about 100 MB (real life). and TestComplete could not execute it.
whenever, I run the script the TestComplete will process it more than 24 hours but still not open it.
My Computer:
Win 7 Pro
Processor: core i7 -4700MQ CPU @ 2.40GHz 2.40GHz
64-bit Operating system
RAM: 16. GB
Below is my script:
function search_and_Save_Text_by_Lines_for_Diagnostic_Server(path_log,sText_File,sText)
{
var file_read;
var lineData = "";
var i = 1;
var index = 0;
var myfile;
var name = ""
var count = 0;
var special_count = 0;
var startIndex = 0;
var end_value = "";
var textName = "";
file_read = aqFile["OpenTextFile"](path_log + "\\" + sText_File, aqFile["faRead"], aqFile["ctANSI"]);
//Read from the begining of the field
file_read["Cursor"] = 0;
while(! file_read["IsEndOfFile"]())
{
startIndex = 0;
//reach each line
lineData = file_read["ReadLine"]();
Log["Message"](lineData);
}
//Close the file
myfile["Close"]();
//Close the file
file_read["Close"]();
}