You must Sign In to post a response.
  • Category: .NET

    Have to read word by word from rich textbox

    Hi friends,

    i have to read JCL file and check whether it has any error based on some conditions. I loaded txt file into rich text box, now i want to read the text word by word , then based on the condition i have to check error.
  • #764109

    Hi Murugesan,

    If you want to retrieve the text word by word, try splitting the text with space i.e. ' ' and store it in an string array.
    By performing iterations on string array elements you can check your error conditions.

    string[] szWords = richTextBox.Text.Trim().Split(' '); //.. code snippet

    Hope this will help you.

    Shashikant Gurav [Programmer II]

  • Sign In to post your comments