>>789361
It's not necessarily an either/or. Some of it was edited at least. Just the mention of the city of "Ramses" is enough of a clue to tell you that. Ramses reigned in the 1200s BC and didn't exist in Moses timeline (unless you're one of those fags who give Exodus a late date, but please don't). When it mentions Ramses, it's calling attention to a later reader that it was the "location" of Ramses as they knew it (same goes for Genesis 47:11 that states Joseph and his brothers settled in the city of "Ramses".. hundreds of years before Ramses ever existed). It's an anachronism. Just like if we said the Romans built the city of York. It's true that they built the founding location of York, but the actual fort in their day was named "Eboracum", which only later evolved into York. Same goes for Ramses. In Moses and Joseph's day, it was the city of Avaris.
And the late date is untenable btw. The Bible itself states that the Exodus was in the 1400s BC range at least. It says in 1 Kings that Solomon built his temple in the 480th year after the Exodus. David and Solomon are easier to date around 1000 BC mark. So it would follow how far back the Exodus was from their time (the same goes for other passages noting similar timelines.. like one of passages in Judges that says it's been 300 years or so since the Exodus).
Long story short though, the bible itself attests that the Torah was lost after a long period of wickedness and fools running the country. Only in the reign of Josiah did they rediscover it:
>"And Hilkiah the high priest said unto Shaphan the scribe, I have found the book of the law in the house of the Lord. And Hilkiah gave the book to Shaphan, and he read it. [..] And it came to pass, when the king had heard the words of the book of the law, that he rent his clothes." - 2 Kings 22:8,11
>
>"And the king sent, and they gathered unto him all the elders of Judah and of Jerusalem. And the king went up into the house of the Lord, and all the men of Judah and all the inhabitants of Jerusalem with him, and the priests, and the prophets, and all the people, both small and great: and he read in their ears all the words of the book of the covenant which was found in the house of the Lord.
>
>And the king stood by a pillar, and made a covenant before the Lord, to walk after the Lord, and to keep his commandments and his testimonies and his statutes with all their heart and all their soul, to perform the words of this covenant that were written in this book. And all the people stood to the covenant." -2 Kings 23:1-3
This soon led to Josiah and Ezra's reforms and a rebuilding of their religion and ensuring this loss never happened again. There's a good chance that this is when some of editing and compilation took place.