How do you fix rust?

I was wondering since most of the 240s have some sort of rust, how would someone go about fixing it? I plan on purchasing a 240sx as my first car however, and I realise that there will be some degree of rust on it (hopefully less) so how do you fix this rust? and or prevent it once u have fixed it.

That is a very general question.
Try google a bit, try reading around here a bit.
There are a lot of people with threads talking about how they fixed frame / body rust and or where they took it and how much it cost them.

this thread should be locked

cut the shit out, weld new metal in, sand… etc. , paint it. Key is to get rid of the rust in the first place or it will just keep on coming back. Or you can use POR15 on the rust, which will usually stop it from rusting anymore but then you’ve still got rusty areas on your car which are ugly.