KOSPI capped a weeklong rally Friday, briefly reclaiming the 7,000 level for the first time in three weeks as foreign investors piled into semiconductor stocks amid stronger sentiment toward the memory chip sector and easing U.S. inflation. The index nearly rose 25 percent from its July 30 low. The benchmark KOSPI closed at 6,977.94, up 2.42 percent from the previous session. The index opened 2.68 percent higher and reclaimed the 7,000 level for the first time in three weeks before giving up some of its gains as investors took profits following a five-session winning streak. Foreign investors purchased a net 3.03 trillion won ($2.13 billion) worth of shares, while institutional and retail investors sold a net 1.02 trillion won and 1.98 trillion won, respectively. SK hynix rose 3.26 percent to close at 1,645,000 won, while Samsung Electronics gained 2.43 percent to finish at 274,500 won. The gains came amid stronger sentiment across the memory chip sector after Sandisk revealed an upbeat long-term outlook at its investor day. The company said it is targeting revenue growth in the mid- to h