The bankruptcy process has a long-lasting impact on your financial future, so do your homework before filing.