Below are revisions for this snippet.

Load File, Remove last few lines





Syndication

Revision Revison 1
Below is a bit of code, which I needed to make when creating an application which did a lot of file manipulation. If you ever want to load the contents of a file, but remove X amount of lines from the end of the file, use the function below.