nun, du durchläufst den String und immer wenn du ein # findest, dann speicherst du alles vor dem Zeichen im Array ab.
also:
LOGIN#User#Pass => LOGIN
User#Pass => User
Pass -> und nun wird kein # mehr gefunden und der String wird auch nicht mehr abgespeichert.
Würdest du LOGIN#User#Pass# nehmen, so würde es funktionieren.
Gruss
_________________
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.