#   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 #     N a m e           :   B o o k m a r k I m p o r t S a m p l e . t x t 
 
 #     P a r t   o f     :   B o o k m a r k   E n g i n e   -   B o o k m a r k   I m p o r t   U t i l i t y 
 
 # 
 
 #     D e s c r i p t i o n : 
 
 #             S a m p l e   B o o k m a r k   I m p o r t   f i l e   ( i n p u t   f o r   B o o k m a r k I m p o r t . e x e ) . 
 
 #             
 
 #     V e r s i o n : 
 
 # 
 
 #     C o p y r i g h t   ( C )   2 0 0 3   N o k i a   C o r p o r a t i o n . 
 
 #     T h i s   m a t e r i a l ,   i n c l u d i n g   d o c u m e n t a t i o n   a n d   a n y   r e l a t e d   
 
 #     c o m p u t e r   p r o g r a m s ,   i s   p r o t e c t e d   b y   c o p y r i g h t   c o n t r o l l e d   b y   
 
 #     N o k i a   C o r p o r a t i o n .   A l l   r i g h t s   a r e   r e s e r v e d .   C o p y i n g ,   
 
 #     i n c l u d i n g   r e p r o d u c i n g ,   s t o r i n g ,     a d a p t i n g   o r   t r a n s l a t i n g ,   a n y   
 
 #     o r   a l l   o f   t h i s   m a t e r i a l   r e q u i r e s   t h e   p r i o r   w r i t t e n   c o n s e n t   o f   
 
 #     N o k i a   C o r p o r a t i o n .   T h i s   m a t e r i a l   a l s o   c o n t a i n s   c o n f i d e n t i a l   
 
 #     i n f o r m a t i o n   w h i c h   m a y   n o t   b e   d i s c l o s e d   t o   o t h e r s   w i t h o u t   t h e   
 
 #     p r i o r   w r i t t e n   c o n s e n t   o f   N o k i a   C o r p o r a t i o n . 
 
 # 
 
 #   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 # 
 
 #   I n v o c a t i o n 
 
 #   = = = = = = = = = = 
 
 # 
 
 #   $ >   B o o k m a r k I m p o r t . e x e   < E P O C   p a t h   o f   i n p u t f i l e > 
 
 # 
 
 #   S y n t a x 
 
 #   = = = = = = 
 
 # 
 
 #   E a c h   l i n e   d e f i n e s   a   f o l d e r   o r   a n   i t e m .   U s e   a   c o m m a - s e p a r a t e d   l i s t   o f   a t t r i b u t e s : 
 
 #   T y p e , N a m e , P a r e n t F o l d e r N a m e , U R L , A c c e s s P o i n t , U s e r N a m e , P a s s w o r d , R e a d O n l y , F a c t o r y I t e m , C o n t e x t I d [ , P r e f e r r e d ] < \ n > 
 
 # 
 
 #   T y p e :                           " F o l d e r "             t o   c r e a t e   a   f o l d e r ;   o r 
 
 #                                       " I t e m "                 t o   c r e a t e   a n   i t e m ;   o r 
 
 #                                       " H o m e p a g e "         t o   s e t   H o m a p a g e   ( n o t   t h e   S t a r t   P a g e !   c u r r e n t l y   u n u s e d ) ;   o r 
 
 #                                       " L a s t V i s i t e d "   t o   s e t   L a s t   V i s i t e d   B o o k m a r k . 
 
 #   N a m e :                           N a m e   o f   t h e   n e w   e n t r y .   M u s t   b e   a   v a l i d   a n d   u n i q u e   n a m e . 
 
 #   P a r e n t F o l d e r N a m e :   N a m e   o f   p a r e n t   f o l d e r   ( m u s t   e x i s t ) ;   o r   l e a v e   e m p t y   f o r   r o o t   f o l d e r . 
 
 #   U R L :                             U R L   o f   t h e   b o o k m a r k .   M u s t   b e   e m p t y   f o r   f o l d e r s ,   m u s t   b e   p r e s e n t   f o r   i t e m s . 
 
 #   A c c e s s P o i n t :             A c c e s s   P o i n t   I d   ( f r o m   C o m m s D b ) ;   o r   l e a v e   e m p t y   t o   s e t   A P   t o   " D e f a u l t " 
 
 #   U s e r N a m e :                   U s e r n a m e   o f   b o o k m a r k .   M a y   b e   e m p t y .   F o r   f o l d e r s   i t   m u s t   b e   e m p t y . 
 
 #   P a s s w o r d :                   P a s s w o r d   o f   b o o k m a r k .   M a y   b e   e m p t y .   F o r   f o l d e r s   i t   m u s t   b e   e m p t y . 
 
 #   R e a d O n l y :                   R e a d   o n l y   f l a g :   0   o r   e m p t y   f o r   F a l s e ,   1   f o r   T r u e . 
 
 #   F a c t o r y I t e m :             F a c t o r y   i t e m   f l a g :   0   o r   e m p t y   f o r   F a l s e ,   1   f o r   T r u e . 
 
 #   C o n t e x t I d :                 C o n t e x t   i d   ( s e a m l e s s   l i n k   s u p p o r t ) .   S e t   h e x a d e c i m a l   n u m b e r   o r   l e a v e   e m p t y   f o r   0 x 0 . 
 
 #   P r e f e r r e d :                 I t e m   i s   p r e f e r r e d   i n   i t s   f o l d e r :   0   o r   e m p t y   f o r   F a l s e ,   1   f o r   T r u e .   O p t i o n a l   a t t r i b u t e . 
 
 # 
 
 #   -   U s e   a   l i t t l e - e n d i a n   U n i c o d e   t e x t   f i l e   ( U n i c o d e   h e a d e r   m u s t   b e   F E , F F ) . 
 
 #   -   E v e r y t h i n g   i s   c a s e - s e n s i t i v e . 
 
 #   -   L i n e s   b e g i n n i n g   w i t h   ' # '   c a n   b e   u s e d   t o   c o m m e n t . 
 
 #   -   E m p t y   l i n e s   ( o n e   \ n   o n l y )   a r e   i g n o r e d . 
 
 #   -   E a c h   l i n e   ( i n c l u d i n g   t h e   l a s t   l i n e   a n d   t h e   c o m m e n t   l i n e s )   m u s t   b e   t e r m i n a t e d   w i t h   \ n . 
 
 # 
 
 #   P o s s i b l e   e r r o r   c a u s e s 
 
 #   = = = = = = = = = = = = = = = = = = = = = 
 
 # 
 
 #           0   K E r r N o n e                     S u c c e s s f u l   i m p o r t . 
 
 #         - 1   K E r r N o t F o u n d             P a r e n t   f o l d e r   n o t   f o u n d . 
 
 #         - 5   K E r r N o t S u p p o r t e d     I n p u t   f i l e   i s   n o t   a   l i t t l e   e n d i a n   U n i c o d e   f i l e . 
 
 #         - 6   K E r r A r g u m e n t             I n v a l i d   b o o k m a r k   d a t a .   I n v a l i d   c o m m a n d   l i n e   a r g u m e n t s . 
 
 #         - 9   K E r r O v e r f l o w             B o o k m a r k   a t t r i b u t e   t o o   l o n g . 
 
 #       - 1 1   K E r r A l r e a d y E x i s t s   B o o k m a r k   n a m e   n o t   u n i q u e . 
 
 #       - 1 2   K E r r P a t h N o t F o u n d     I n p u t   f i l e   i s   n o t   f o u n d . 
 
 #       - 2 0   K E r r C o r r u p t               I n p u t   f i l e   i s   n o t   U n i c o d e .   S y n t a x   e r r o r   i n   i n p u t   f i l e . 
 
 #       - 2 8   K E r r B a d N a m e               B o o k m a r k   n a m e   i s   i n v a l i d . 
 
 # 
 
 #   E x a m p l e   d a t a 
 
 #   = = = = = = = = = = = = 
 
 # 
 
 # F o l d e r , A   F o l d e r , , , , , , , , 
 
 # F o l d e r , T e s t , , , , , , , , 
 
 # I t e m , W A P   S t o p   H u , , h t t p : / / w a p . s t o p . h u , , B a s i l   t h e   s h e e p , B a s i l ' s   p a s s w o r d , 1 , 1 , a a f f 
 
 # I t e m , E c o , A   F o l d e r , h t t p : / / w a p . e c o . h u , 6 , , , 0 , 0 , 1 2 a d 
 
 # 
 
 #   E x a m p l e   d a t a   # 2 :   ( w i t h   S e a m l e s s   L i n k   f o l d e r s ) 
 
 #   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 F o l d e r , D o w n l o a d   A p p l i c a t i o n s , , , , , , 1 , 1 , 0 0 0 0 0 0 0 1 
 
 F o l d e r , D o w n l o a d   I m a g e s , , , , , , 1 , 1 , 0 0 0 0 0 0 0 2 
 
 F o l d e r , D o w n l o a d   S o u n d s , , , , , , 1 , 1 , 0 0 0 0 0 0 0 3 
 
 F o l d e r , D o w n l o a d   V i d e o s , , , , , , 1 , 1 , 0 0 0 0 0 0 0 4 
 
 F o l d e r , D o w n l o a d   S k i n s , , , , , , 1 , 1 , 0 0 0 0 0 0 0 7 
 
 F o l d e r , D o w n l o a d   M u s i c , , , , , , 1 , 1 , 0 0 0 0 0 0 0 8 
 
 
 
 I t e m , N o k i a . c o m , D o w n l o a d   S o u n d s , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / t o n e s , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a . c o m , D o w n l o a d   I m a g e s , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / g r a p h i c s , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a . c o m , D o w n l o a d   V i d e o s , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / v i d e o , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a . c o m , D o w n l o a d   S k i n s , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / t h e m e s , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a . c o m , D o w n l o a d   M u s i c , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / m u s i c , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a . c o m , D o w n l o a d   A p p l i c a t i o n s , h t t p : / / e a . m o b i l e . n o k i a . c o m / e a / a p p s , , , , 1 , 1 , , 0 
 
 
 
 I t e m , M O S H , , h t t p : / / m o s h . n o k i a . m o b i , , , , 1 , 1 , , 0 
 
 I t e m , N - G a g e , , h t t p : / / w w w . n - g a g e . c o m , , , , 1 , 1 , , 0 
 
 I t e m , N o k i a   M u s i c   S t o r e , , h t t p : / / b u y m u s i c . n o k i a . c o m / s d , , , , 1 , 1 , , 0 
 
 
 
 
 
 