In Psalm 119 David himself poses a question and follows it with the appropriate answer.
“How can a young man keep his way pure?
By keeping it according to Your word.
With all my heart I have sought You;
Do not let me wander from Your commandments.
Your word I have treasured in my heart,
That I may not sin against You” (Psalm 119:9-11).
The question itself more than suggests there is a correct path in which one can proceed through life; it is by walking according to the will of God. In a secular world rife of relative absolutes, it may be unpopular to insist on the moral absolutes found in God.
The Word of God contains within its borders the commandments of God, the will of God. In order to abide in them, one must read them, know them, and have them written upon their hearts, that in any given situation of weakness or need, the correct path may be easily known. The idea is certainly one of memorization, but I believe it is not limited to that. More so, the ideals of God are to be woven-in to our character and soul.
A little later on in Psalm 119, David again affirms that this Word is the light, which illumines the path of life.
“Your word is a lamp to my feet
And a light to my path” (Psalm 119:105).
Step by step, God does not leave us in the dark. He walks us through those paths of righteousness (Psalm 23:3). We may not see too far out in front of us, but we still see where the next step needs to be, and the next step, and the next step. The heart seeking God seeks His commandments. As Scripture is indelibly embossed upon our hearts, the navigation by the divine mind is given; the light is given.