Remove last character from each line in a text file

I have a 550 lines written .txt file. I want to take out the last character from every line. Thre is also a space between each line that I want to remove. Can anyone tell me the code or script how to go on about doing so?
