Uniko Sistemi srl Active Member Licensed User Oct 27, 2022 #1 Hello everybody is there a function that allows you to search for a specific word in a text file that contains many lines? I ask this to know if there is a direct method like in VB6 and avoid searching line by line! thanks a lot to everyone
Hello everybody is there a function that allows you to search for a specific word in a text file that contains many lines? I ask this to know if there is a direct method like in VB6 and avoid searching line by line! thanks a lot to everyone
Solution William Lancee Oct 27, 2022 B4X: Dim allText As String = File.ReadString(File.DirAssets, "colors.txt") Log(allText.Contains("Crimson"))
B4X: Dim allText As String = File.ReadString(File.DirAssets, "colors.txt") Log(allText.Contains("Crimson"))
William Lancee Well-Known Member Licensed User Longtime User Oct 27, 2022 #2 B4X: Dim allText As String = File.ReadString(File.DirAssets, "colors.txt") Log(allText.Contains("Crimson")) Upvote 1 Solution
B4X: Dim allText As String = File.ReadString(File.DirAssets, "colors.txt") Log(allText.Contains("Crimson"))