Thread: Writing an array to file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2020
    Posts
    150
    Why don't your forget about the image for a little while and focus on just arrays ? Once you understand how it works you can integrate your knowledge into the image project

    Code:
    #include <stdio.h>
    
    #define ROWS    4
    #define COLS    4
    
    
    int main()
    {
        int **array = NULL;
        
        // create and initialize your array
        
        // display array
        
        // save to file 
        
        // read array 
        
        // display array
        
        // delete array
    }
    Maybe you want to watch this tutorial: Dynamically allocated multi-dimensional arrays in C - YouTube
    Last edited by thmm; 01-01-2022 at 02:30 AM. Reason: Added link

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing array into file and reading array from file
    By isolatedleo in forum C Programming
    Replies: 1
    Last Post: 04-20-2014, 02:59 AM
  2. Writing an array in a file
    By Marria in forum C Programming
    Replies: 13
    Last Post: 09-12-2012, 02:25 PM
  3. Writing array to a file
    By redsfan in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2011, 05:01 PM
  4. Writing array, to file
    By zootreeves in forum C Programming
    Replies: 9
    Last Post: 09-08-2007, 05:06 PM
  5. Writing an array to a file
    By HAssan in forum C Programming
    Replies: 3
    Last Post: 10-24-2005, 06:25 AM

Tags for this Thread