Reading DBF file....???- - - - Please help Me- - -
-
dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me
-
dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me
I imagine if you try to connect to it as if it was a dbf file, you'd find out soon enough. Beyond that, you could look at the file format to see if there's some marker bytes you could read and examine.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me
-
I imagine if you try to connect to it as if it was a dbf file, you'd find out soon enough. Beyond that, you could look at the file format to see if there's some marker bytes you could read and examine.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
i am sory christian, I do not find your suggestion on the blog.. clearer please...
-
i am sory christian, I do not find your suggestion on the blog.. clearer please...
I don't mention it on my blog, because it's not a bug in Microsoft. It's just common sense. I can't make it any clearer.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me
If u are a guy like me, I would suggest you to visit http://www.clicketyclick.dk/databases/xbase/format/dbf.html#DBF_STRUCT[^] to know the structure of a Dbase file(".dbf"). Before making the connection, check the file by opening a streamreader, and check the first byte to find the version and do some other checks to confirm it is a valid dbf file.
-
dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me
Hi, you can check the type of the file use: FileStream fs = new FileStream("Your file path", FileAccess.ReadWrite, FileMode.OpenOrCreate); StreamReader sr = new StreamReader(fs, Encoding.Default); sr.ReadToEnd(); sr.Close(); fs.Close(); or File.ReadAllLines("Your file path", Encoding.Default);
April Comm100 - Leading Live Chat Software Provider