Electronics retailer RadioShack Corp. filed for U.S. bankruptcy protection on Thursday and said it had a deal in place to sell as many as 2,400 stores to an affiliate of hedge fund Standard General, its lender and largest shareholder.