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. How to Read/Write DBF file In C# use IO/Stream (not OLEDB)

How to Read/Write DBF file In C# use IO/Stream (not OLEDB)

Scheduled Pinned Locked Moved C#
tutorialcsharphelpquestion
3 Posts 3 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.
  • T Offline
    T Offline
    tinh cau
    wrote on last edited by
    #1

    Hello I want create a file fox (*.dbf) which has 3 fields (ID, NAME, MOBILE). Then I need insert data to this file. Example: 1, Mr Join, 0912555666 2, Ms Angela, 0123666777 ---------------------------------------- You can help me? There are examples as possible. Thank you very much!

    C M 2 Replies Last reply
    0
    • T tinh cau

      Hello I want create a file fox (*.dbf) which has 3 fields (ID, NAME, MOBILE). Then I need insert data to this file. Example: 1, Mr Join, 0912555666 2, Ms Angela, 0123666777 ---------------------------------------- You can help me? There are examples as possible. Thank you very much!

      C Offline
      C Offline
      CodingYoshi
      wrote on last edited by
      #2

      No idea what you are asking. Please clarify.

      1 Reply Last reply
      0
      • T tinh cau

        Hello I want create a file fox (*.dbf) which has 3 fields (ID, NAME, MOBILE). Then I need insert data to this file. Example: 1, Mr Join, 0912555666 2, Ms Angela, 0123666777 ---------------------------------------- You can help me? There are examples as possible. Thank you very much!

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Why DBF, this format is no longer used in any applications that I know of (possible exception is Foxpro). I suggest you look into another database, Access or SQL Express and there are a couple of others out there that will be a better option than DBF. You cannot "write" to a .DBF file using filestream, you have to create a connection to the file, you may be able to use the Jet engine, try connectionstrings.com You could also use XML for small data sets.

        Never underestimate the power of human stupidity RAH

        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