Virus Infection

Dell had to reset my computer to its original factory status due to viruses I had on my computer with Norton as my security.  What should I do to avoid this from happening again?  Does anyone know how to get back up files?