replacement for sscanf?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Oliver

    #1

    replacement for sscanf?

    Hi.

    What is the best replacement for sscanf?

    Thanks,
    Mark


  • Girish Bharadwaj

    #2
    Re: replacement for sscanf?

    Mark Oliver wrote:
    [color=blue]
    > Hi.
    >
    > What is the best replacement for sscanf?
    >
    > Thanks,
    > Mark
    >
    >[/color]
    A combination of different Parse() methods + Console.ReadLin e() should
    be good to read the data. If the data is separated by a known char, you
    can probably use String.Split() as well.
    Or,
    Use RegEx and write your own scanner.

    --
    Girish Bharadwaj

    Comment

    • Mark Oliver

      #3
      Re: replacement for sscanf?

      Hi,

      String.Split() works, but I was hoping for a inverse of String.Format
      that works in the same way as sscanf inverses sprintf.

      Thanks,
      Mark

      "Girish Bharadwaj" <girishb@nowher e> wrote in message
      news:3F953D1D.6 010004@nowhere. ..[color=blue]
      > Mark Oliver wrote:
      >[color=green]
      > > Hi.
      > >
      > > What is the best replacement for sscanf?
      > >
      > > Thanks,
      > > Mark
      > >
      > >[/color]
      > A combination of different Parse() methods + Console.ReadLin e() should
      > be good to read the data. If the data is separated by a known char, you
      > can probably use String.Split() as well.
      > Or,
      > Use RegEx and write your own scanner.
      >
      > --
      > Girish Bharadwaj
      >[/color]


      Comment

      Working...