This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Returns true or false depending on if a text file contains the specified word in the content | |
/// Example: | |
/// FindWordInFile("error", "C:/user/Desktop/test.txt"); | |
/// </summary> | |
/// <param name="word">Word to find in text file</param> | |
/// <param name="filePath">Absolute path to the text file</param> | |
/// <returns>True if the word is inside of the file, false if not.</returns> | |
static public bool FindWordInFile(string word, string filePath) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
performance | |
} = require('perf_hooks'); | |
let arrayTime = [], | |
arrayLen = [], | |
setTime = [], | |
setLen = []; | |
let times = 1000 |