This is the 19659th most frequent Korean word.
얻겠다며
"얻겠다며" means "saying that [one] will gain/obtain [something]."
In this sentence, '얻겠다며' connects the intention to acquire knowledge ('얻겠다') with the action of reading books. This shows a direct correlation between the stated intention and the performed action.
그는 새로운 지식을 얻겠다며 도서관에서 많은 책을 읽었다.
He read many books in the library, saying he would gain new knowledge.
Here, '얻겠다며' indicates a future goal or aspiration ('성공을 얻겠다') and links it to the onset of diligent work. The usage combines future intent and the commencement of relevant actions.
그녀는 성공을 얻겠다며 열심히 일하기 시작했다.
She started working diligently, saying she would achieve success.
In this sentence, '얻겠다며' relates the children's intent to obtain fun ('재미를 얻겠다') with their decision to go to a place fitting that intention.