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...
Type: Posts; User: copeg
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...
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...
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.