真実を知る唯一の方法だ。
It's the only way to know the truth.
文法: to 不定詞
「way」は「方法」という意味でよく使われます。「the only way」は「唯一の方法」という意味です。単に「It’s the only way.(他に方法はない)」という文もありますし、「to 動詞」がつづくこともあります。例えば
「It’s the only way to be sure.(確実にするのに唯一の方法だ)」
「It’s the only way to not hurt her.(彼女を傷つけない唯一の方法だ)」など。