Tell me how to get data from a .txt file and compare it with what the user entered. str - what the user entered
$scope.praviloThree = function (str) { var count= 0; ///считать файл var text = "" for(var i =0; i<text.length; i++) { if(str == text)count++; } return count; I will have to compare 123456 with str, and so on with the entire file
