hello: am working on a program that read through a binary data file. the problem that I am having right now is this. I have 6 different types of binary data files (different formats, - hence defined 6 different structures). the way that I did is was to make 6 different functions which call fread with the associated structure then I do my processing there. I was wondering if someone could tell me (if it is possible a way to be able to change the associtated struct so that I only have one function which calls fread. As in while (fread(<variable struct>, size, # items, file *ptr).
thxs for the help
thxs for the help