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. General Programming
  3. C#
  4. Schema.ini & file names

Schema.ini & file names

Scheduled Pinned Locked Moved C#
databasecomxmlhelpquestion
2 Posts 2 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.
  • D Offline
    D Offline
    digsy_
    wrote on last edited by
    #1

    I'm trying to create a schema.ini file to impport data from a csv file and have hit a snag. According to this article - http://msdn2.microsoft.com/en-us/library/ms709353.aspx - the first line in the schema needs to be the file name. My problem is that I get uniquely named files and have no idea what they will be untill I get them. Is there a way to omit the first line in the schema or just specify the filename as *.csv ? Thanks, Nathan

    D 1 Reply Last reply
    0
    • D digsy_

      I'm trying to create a schema.ini file to impport data from a csv file and have hit a snag. According to this article - http://msdn2.microsoft.com/en-us/library/ms709353.aspx - the first line in the schema needs to be the file name. My problem is that I get uniquely named files and have no idea what they will be untill I get them. Is there a way to omit the first line in the schema or just specify the filename as *.csv ? Thanks, Nathan

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      digsy_ wrote:

      Is there a way to omit the first line in the schema or just specify the filename as *.csv ?

      I've never used the Text driver, so.... As far as I can tell, no you can't remove this. You are probably going to have to write this file out with the name of the file you're importing for each and every file you import using this method. The alternative is to write your own import implentation from scratch or try to find a third party CSV parser class. Search the articles here for "CSV" and you should find at least one.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      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