Search:

Type: Posts; User: copeg

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    3,134

    Re: finding String in a file

    May be overkill but you might consider using a Regular Expression if you want your code to be a lot more extensible. Like I said in certain situations its overkill, but does the trick in more...
  2. Replies
    12
    Views
    3,134

    Re: finding String in a file

    Big O notation - Wikipedia, the free encyclopedia
    It essentially describes the complexity/performance of an algorithm (usually in terms of a worst case scenario). O(n) is considered linear, eg its...
  3. Replies
    12
    Views
    3,134

    Re: finding String in a file

    Don't think there is a shorter way than reading the file. If you are on unix or linux you could grep it using the exec() command, but that ends up making the program platform specific.
Results 1 to 3 of 3