Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Parsing Text file w/ multple datasets and schema.ini?

Parsing Text file w/ multple datasets and schema.ini?

Scheduled Pinned Locked Moved Database
questiondatabasexmljsonhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joshua Lunsford
    wrote on last edited by
    #1

    so i've been collecting text files with data separated with ';' I have been using a schema.ini file to define each text file...

    example:
    schema.ini:

    [text.txt]
    Format=Delimited(\;\)
    ColNameHeader=False
    MaxScanRows=0
    Character=OEM
    Col1=File Text
    Col2=problem Text
    Col3=serial Text
    Col4=name Text
    Col5=cube Text
    Col6=time Text

    data in text.txt:

    ASSET;S/N-BIOS;XXXXXX;DPCSXXX;1KXXX;11/21/2005 5:57:43 AM

    now, the data i'm going to be receiving in the the near future has different kinds of data separated by blocks all in the same text file. for example data in text.txt: [AssetData] ASSET;S/N-BIOS;XXXXXX;DPCSXXX;1KXXX;11/21/2005 5:57:43 AM [UserData] XXXX;XX;XX;XX How can I parse this data(previously using a Oledb connection with the schema.ini) into individual datasets? Thanks alot in advanced -- modified at 12:34 Thursday 29th December, 2005

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups