Search Result

Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
binary files
  •  

  • mohammed alhadi
    started a topic How to write integer values to a binary file?
    in C

    How to write integer values to a binary file?

    Hi All,

    There is an error here, can any body tell me how to do it right? (copy from text file to Binary file)

    Code:
    #include "stdio.h"
    #include  "iostream.h"
    #include "fstream.h"
    
    void main()
    {
    ifstream inFile;
    
    inFile.open("c:\\file.txt");
    
    FILE  *pBinaryFile;
    char buffer;
    //pTextFile = fopen("c:\\file.txt",
    ...
    See more | Go to post
    Last edited by Niheel; May 12 '11, 04:57 PM.

  • How to write a c++ program that processes the integer values stored in a binary file?

    Hi All,

    I don't want to use the struct structure to access or represent the elements, I just want to save integer values to a binary file (now I have the data stored on a text file and the first line in it represent the dimensions of the matrix) and then access them and store them in a 1D array.

    for which the integer values are representable in reality by a 2D matrix but i will store them on a binary file, and I am going...
    See more | Go to post
Working...