Anyone here got some talent with C# and can push me in the correct direction? I'm working on an application that reads a .txt file full of hashtags from Twitter and I am trying to figure out:
To be honest, I'm completely stumped. Also, if there's an alternative method for stopping a file from being read, instead of a while loop with != null then that'd be great too. As I found somewhere that a while loop (or probably even recommended it) would stop the file writing the lines if it was equal to null, but it fails every time.
- How many hashtags are in the file
- Number of individual hashtags
To be honest, I'm completely stumped. Also, if there's an alternative method for stopping a file from being read, instead of a while loop with != null then that'd be great too. As I found somewhere that a while loop (or probably even recommended it) would stop the file writing the lines if it was equal to null, but it fails every time.