Subj : Re: To read a block of a binary archive. To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Mon Jul 07 2003 04:41 pm > As it would make this in C++/C++Builder? A good way to start might be to ask in a C++ Builder newsgroup. You are in the newsgroup for the old Borland C++ compiler. C++ Builder newsgroups have the word 'cppbuilder' in their name. It seems a waste to read a single character with blockread. However, here is an example of doing it in either of C or C++. --------------- #Include int main() { FILE *f = fopen("FileName.dat", "rb"); if (f == NULL) printf("Error: could not open file\n"); else { char c; fread(&c, 1, 1, f); fclose(f); printf("The character read is '%c'\n", c); } return 0; } --------------- Follow ups set to borland.public.cppbuilder.language.cpp .. Ed > Sgt Roxo wrote in message > news:3f09b1e4$1@newsgroups.borland.com... > > Necessary of aid. In delphi, to read a block of a binary > archive and use: > > blockread(f, character, 1) > > being: f = file, > character = word > > As it would make this in C++/C++Builder? .