Of course man wrote the Bible; what was God to do? Send man a fax? Obviously God had to get his message across in a practical way.
Using the Four Senses of Scripture to Interpret the Exodus
Literal (or historical): We better understand salvation history by knowing the story itself and the historical details about the chosen people. In the story of the Exodus, the literal sense is the actual crossing of the Red Sea by the Israelites and the drowning of the forces of Pharaoh.
Christological (or allegorical): We better understand Christ’s death and resurrection by relating it to the literal sense. Luke uses the christological sense when he tells us that Moses and Elijah spoke with Jesus about his "exodus" during the Transfiguration (cf. Luke 9:31). As God freed Israel from Egypt at the Red Sea and honored them as the chosen people, he freed Christ from the bonds of death and raised him to glory.
Moral (or tropological): We better understand God’s will in our lives by relating the literal sense to our lives in Christ. In baptism, Christ "drowns" original sin in the waters.
Anagogical: We better understand the hope of eternal life to which we are called. In our own deaths, we hope to be freed definitively from sin and mortality and raised up in glory. The destruction of death and Hades in the lake of fire (Rev. 20:14–15) is an anagogical reference to the Exodus.
For a good introduction to the four senses, see Making Senses Out of Scripture: Reading the Bible as the First Christians Did by Mark P. Shea (Basilica Press, 1999).
Catholic spiritual writers often have meant their own writings to be read in this way, as Dante said of his own Divine Comedy and St. John of the Cross illustrates in commentaries on his own poetry.
2 Timothy 3:12-17: Indeed all who desire to live a godly life in Christ Jesus will be persecuted, while evil men and impostors will go on from bad to worse, deceivers and deceived. But as for you, continue in what you have learned (TRADITION) and have firmly believed, knowing from whom you learned it (MAGISTERIUM) and how from childhood you have been acquainted with the sacred writings (SCRIPTURE) which are able to instruct you for salvation through faith in Christ Jesus. All scripture is inspired by God and profitable for teaching, for reproof, for correction, and for training in righteousness, that the man of God may be complete, equipped for every good work.
Note verse 14. It admonishes Timothy to do three things:
1) Remember what you have learned and firmly believed (Tradition)
2) Know from whom you learned it (Magisterium)
3) Know you have the Scriptures
The Bible on St. Paul's list comes in third, not first. He actually gives here the traditional Catholic teaching on the three sources of sound teaching.
In verse 15 he goes into an excursus on the Bible. This brief excursus emphasizes the value of the Bible and recommends a fourfold method of exegesis. This verse was used in the pre-Deformation Church as a proof text for the Quadriga which was the standard Catholic approach to the Bible. The Quadriga method used the following four categories:
Literal/Literary (teaching) - the text as it is written
Analogical (reproof) - matters of faith
Anagogical (correction) - matters of hope/prophecy
Moral (training in righteousness) - matters of charity
The analogical, anagogical and moral senses of the Bible were known collectively as the spiritual senses. The 'reformers' rejected the BIBLICAL fourfold method of exegesis, and ignored 2 Tim 3:12-17.
This is one of many rebutting defeaters in 2 Tim 3 for those who wish to use it to support sola scriptura.