The fuel line is attached to the bottom of the chainsaw, and it's usually a fairly easy process to replace this. First, remove the spark plug wire from the spark plug. Next, remove the spark plug by unscrewing it with a wrench and pulling it out of the engine. Next, use a screwdriver to unscrew and remove the screws holding on the gas cap. Pull off the gas cap and set it aside.