The names of the notes are usually memorized by separating the lines from the spaces:
The traditional memory aid for the lines E G B D F is Every Good Boy Does Fine.
For the spaces, F A C E is easy to remember.