I filed a bankruptcy before. Can I do it again?

If you filed a Chapter 7 previously, and received a Discharge, you cannot file again for 8 years from the date of the previous discharge.

If you filed a Chapter 7, and received a Discharge, , you may file a Chapter 13 within the 8 year period. 

If you previously filed a Chapter 13 and were discharged, you can file a Chapter 7 within the 8 year period.

The filing is not as important as whether or not a Discharge was entered in your previous case.