About 33,800,000 results
Open links in new tab
  1. search - Searching through a text file java - Stack Overflow

    Apr 9, 2015 · public static void Findstr() { // This function searches the text for the string. File file = new File("data.txt"); Scanner kb = new Scanner(System.in); System.out.println(" enter the …

  2. How to Extract Content From a Text Document using Java?

    Nov 8, 2022 · To read a text file we can use the readAllBytes () method of Files class with which using this method, when you need all the file contents in memory as well as when you are …

  3. Java 8 - How to find a 'STRING' in a Text File? - Techndeck

    Jan 13, 2023 · Find String in a Text File using Java 8. Learn two different ways of how to check if a string is present in the text file in Java 8...

    Missing:

    • Information

    Must include:

  4. Find Strings Within a Text File in Java - Online Tutorials Library

    Sep 10, 2019 · Learn how to find strings within a text file using Java. This guide covers essential methods and examples for efficient string searching.

  5. Find a string (or a line) in a txt File Java - Stack Overflow

    use String.contains(your search String) instead of String.endsWith() or String.startsWith() eg. str.contains("omar"); . You can go other way around.

    Missing:

    • Information

    Must include:

  6. Search a Text File in Java : The Coders Lexicon

    Apr 16, 2008 · We talk about searching a text file using Java and how to locate certain key word positions. Example code is provided.

  7. JavaSearch in File as fast as possible - Medium

    Sep 18, 2021 · We will compare different ways of searching text inside files with JavaScript using the Node.JS framework.

    Missing:

    • Information

    Must include:

  8. java - Fast way of searching for a string in a text file - Code …

    Mar 11, 2014 · When searching for a fixed string (i.e., no wildcards), Knuth-Morris-Pratt is significantly faster than naive matching, for example. This could probably make a difference, …

    Missing:

    • Information

    Must include:

  9. How to Search for a String or Line in a Text File Using Java

    Searching for a string or line within a text file in Java can be accomplished using the BufferedReader class, which offers an efficient way to read text from a character-input stream. …

  10. searching from txt file for a specific characters (Java)

    Oct 15, 2014 · Once you have the line i bet you will be able to use the common String-methods like .indexOf (.., .substring (..., .split to aquire the data you want (expecially since the source …

  11. Some results have been removed
Refresh