Scripture is intended to teach us about God, what God has done, what God wants from us, what God wants for us, and what God will do – ultimately, its intended to lead us to salvation through faith in Christ and to teach us to live godly lives for God. Here are some relevant verses:
2 Timothy 3:15-17
15 and that from childhood you have known the sacred writings which are able to give you the wisdom that leads to salvation through faith which is in Christ Jesus. 16 All Scripture is inspired by God and profitable for teaching, for reproof, for correction, for training in righteousness; 17 so that the man of God may be adequate, equipped for every good work.
3 Blessed is he who reads and those who hear the words of the prophecy, and heed the things which are written in it; for the time is near.
31 but these have been written so that you may believe that Jesus is the Christ, the Son of God ; and that believing you may have life in His name.
1 John 2:1
1 My little children, I am writing these things to you so that you may not sin. And if anyone sins, we have an Advocate with the Father, Jesus Christ the righteous ;
I like what this guy says: http://www.laramiechurchofchrist.org/documents/BT_206.pdf