Uzamčený readalltext - ()

  • 29. února 2012 23:57
     
     

    hey so far what i have is a button and a text box and when you press the button it my.computer.filesystem.readalltext(from this file as string)

    but what i want it to do is to read all the text in that file minus whatever is in parenthesis so like lets say the file has saved into it, hi my name is bob but my realname is (jeorge) that when you press the button it reads and shows everything in the file minus jeorge which is in parenthesis

Všechny reakce

  • 1. března 2012 9:31
    Moderátor
     
     

    Hi,

    maybe you should investigate Regular Expressions. That is the most powerfull way to handle text in my eyes. There is a lot of documentation available on the net so I would sugegst to just use bing or google to look it up (maybe also add introduction or tutorial). One of the first hits should be wikipedia and I would suggest to start there. (http://en.wikipedia.org/wiki/Regular_expression)

    With kind regards,

    Konrad

  • 1. března 2012 9:45
    Moderátor
     
     

    I forgot to mention: This forum is covering the Developer Documentation and the MS Help System only. You might want to ask your questions inside a forum targeting the language you are using. There are a lot of Forums targeting C#, C++ and VB.Net. (You are really welcome and I hope that my replies to your questions was already helpfull. But maybe you have a look at other forums and hopefully you will find a great community which is willing to help you and explain things deeply. The forums can be a great resource for starters!)

    With kind regards,

    Konrad