Re: newbie I/O problem

From: Chris Smith (cdsmith_at_twu.net)
Date: 12/29/03

  • Next message: Tony Dahlman: "Re: Where I can find LunarCalendar class?"
    Date: Sun, 28 Dec 2003 16:54:17 -0700
    
    

    Samba wrote:
    > I need to get every value, here is the code that i use, my variable "mot"
    > returns the wole line instead of each value, i don't understand why, does
    > someone knows?

    > StringTokenizer st = new StringTokenizer(chaine, "");
    > mot = st.nextToken();

    You went out of your way to specify that there are no delimiters.
    Without delimiters, StringTokenizer cannot break up the String. I don't
    know why you thought this was necessary; if you explain, then perhaps I
    can help clear up the confusion.

    -- 
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.
    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
    

  • Next message: Tony Dahlman: "Re: Where I can find LunarCalendar class?"

    Relevant Pages

    • Re: StringTokenizer
      ... the boolean specifys whether or not the delimiters are returned as tokens. ... Although i dont think StringTokenizer will do what ure expecting. ... then cast the first 5 chars back into a string, then the next 5 chars, then ...
      (comp.lang.java.programmer)
    • Re: How do I print a float array to a file?
      ... consider the dlmwrite function to add delimiters or specify ... precision, or, if you really want to use low-level I/O functions, use ...
      (comp.soft-sys.matlab)
    • Re: StringTokenizer functionality in split
      ... >"StringTokenizer" method. ... >returns the tokens but also the delimiters found. ... But in the Java doc ... If you want to treat multiple consecutive delimiter characters ...
      (comp.lang.java.programmer)
    • Re: Fields and record Delimiters
      ... Unfortunately, there is no simple, reliable way to specify which delimiters ... when the user opens the Word document. ... you can specify the /field/ delimiter using an ODBC Text Driver ...
      (microsoft.public.word.mailmerge.fields)
    • Re: Help with mail merging using a Text File
      ... > in the text file) a little dialog box pops up asking me to specify the ... > delimiters even though its already got the correct ones in... ... it wants a "pattern confirmation" that the field delimiter it's guessing ... What should work is to duplicate the field names in the header source file ...
      (microsoft.public.word.mailmerge.fields)