If I understand you correctly (which is doubtful), you’re looking to animate a stroke across a “skyline” path similar to this one:
https://www.ducey.com/Graphics/FrzLogo.gif
only with letters instead of buildings.
What I would do is create the text in a single color, say white; add a white rectangle that slightly overlaps the lower portion of the letters; auto-trace the result using Layer->Autotrace, and finally trim any unncessary portions of the resulting mask. You’ll need to decide what to do with disconnected components of the text, for instance a “T” will give you a single path but an “M” may give you two or three.
Once you have the appropraite mask, it should be a simple matter to stroke it, add glow, animate the stroke location, etc. You can use either the Stroke effect, or Vegas, or even Trapcode’s 3D stroke for some more control.
AA