Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Patrick McGreevy
  Where is Patrick McGreevy?
 Clarksville
 Tennessee - United States
 Patrick McGreevy
 Tags
Subject: RE: Read binary data files
Thread ID: 115925 Message ID: 116035 # Views: 13 # Ratings: 0
Version: Visual FoxPro 8 Category: Databases, Tables and SQL Server
Date: Wednesday, December 13, 2006 6:26:10 PM         
   


> The binary files(.lib file extensions) define the structure of the data files(.dat file extensions). These data files are in flat files with no delimiters.
>
> The program these files support was originally written in COBOL, Informix and others, and ran in a DOS 5.0 VDM. It now runs in a DOS VDM(not sure of version) under Windows 2K.
>
> When you start the program, it loads the data files into memory on the server, according to the structure defined in the .lib files.
>
> About once a year, we get updates to the program. During this update, sometimes the file structure is changed on certain files, but no notice is given.
>
> What I want to do is load the binary file into VFP and compare the new to the old. Then programatically change the structure of my billing,research and archive files to match the new structure i.e. add new fields, delete fields, or change the length of existing fields if needed.
>
> I should mention that I am copying the data files from the program server to a file server in my building and working them from there. The communication is one-way, from the program server to the file server.
>
> Hope this is a little better explanation of my problem.
>
> Pat

Pat,

There is no magic: no matter what programming language do you use, when comparing information from binary files you need to know in advance the structure of the binary files or how to get information from there. If you do not know the applied code rules, VFP will not help (and neither any other programming language).


Best Wishes,

Yuri Rubinov

COMPLETE THREAD

Read binary data files Posted by Patrick McGreevy @ 12/12/2006 8:53:03 PM
RE: Read binary data files Posted by Yuri Rubinov @ 12/12/2006 10:03:45 PM
RE: Read binary data files Posted by Patrick McGreevy @ 12/12/2006 10:16:48 PM
RE: Read binary data files Posted by Yuri Rubinov @ 12/13/2006 2:34:09 PM
RE: Read binary data files Posted by Patrick McGreevy @ 12/13/2006 4:54:48 PM
RE: Read binary data files Posted by Yuri Rubinov @ 12/13/2006 6:26:10 PM
RE: Read binary data files Posted by Patrick McGreevy @ 12/13/2006 8:52:22 PM