Complex sentence: From 1939 to 1965, he was in the Indian Foreign Service which gave him the opportunity to travel to many countries in Asia, the Middle East and Europe and to study oriental texts and manuscripts lodged in their archives, libraries and museums.
Split into simpler sentences: From 1939 to 1965, he was in the Indian Foreign Service. He took advantage of his foreign postings and assignments to travel to many countries in Asia, the Middle East and Europe to view or study oriental texts and manuscripts lodged in their archives, libraries and museums.