The infection can be spread by sharing needles that are used to inject drugs or, less often, through sexual contact. 
You can get HCV by using the same needle as someone else or sometimes from having sex.  