Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read this file #17

Open
DllArsoeSoual opened this issue Mar 31, 2017 · 0 comments
Open

Failed to read this file #17

DllArsoeSoual opened this issue Mar 31, 2017 · 0 comments

Comments

@DllArsoeSoual
Copy link

DllArsoeSoual commented Mar 31, 2017

FCAPITAL.zip

There are are only two fields in this table. The start position of the record data is 96.
When the program read the field header, It read one more character. And then start reading the records at 97.

I have made this change on the DBFHeader.Read

        var v_fields = new List<DBFField>();
        var field = DBFField.CreateField(dataInput); /* 32 each */


        int endField = 64;
        while (field != null)
        {
            v_fields.Add(field);


            if (endField >= _headerLength) break;
            endField += 32;

            field = DBFField.CreateField(dataInput);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant