Troubled electronics retailer RadioShack has filed for bankruptcy for the second time in just over two years.