There is a greater chance of getting the infection through anal sex. Another way is through contact with infected blood in dirty needles used for injecting drugs. Most people get better and can no longer pass on the virus. Others will always carry the virus and continue to be infectious. Some carriers will go on to have chronic liver disease.
Some sill develop cancer of the liver.
Do not drink alcohol if you have hepatitis. A special diet may be needed if you have a severe disease. Your doctor will advise you. As long as you carry the virus, you can infect others. All of these contacts should be examined by a doctor.