Thread: Linked List implementation in file handling??

  1. #1
    Registered User
    Join Date
    May 2012
    Location
    India
    Posts
    12

    Linked List implementation in file handling??

    I just wanted to know that can we implement Linked List in File handling i.e. Can we store the data inside a file in the form of linked list or any other data structure??

    Thanks

  2. #2
    Time-Lord Victorious! The Doctor's Avatar
    Join Date
    Aug 2012
    Location
    Perth, Western Australia
    Posts
    50
    Well, my assignment this semester is going to involve file io and linked lists, so I would guess so. I don't know how at the moment though... I'll find out soonish I guess.

  3. #3
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Memory: For our purposes, memory is a contiguous block of bits available for any purposes that we wish to put it.

    Files: For our purposes, memory is a contiguous block of bits available for any purposes that we wish to put it.

    The only differences, again for the purposes of the discussion, is the speed and size.

    Any data structure you can imagine being implemented with memory can be adapted for use with files.

    Some data structures are just not suitable for use with files. It would not be difficult to implement a linked list using a file, or multiple files, as storage. Such a beast may just not show reasonable performance for any given usage. There are, however, many data structures designed specifically for use with files as storage; many such data structures are unsuitable, or just silly, for use with memory as storage.

    So, the questions become, what are wanting to store, how are you needing to access it, and how is the data mutated. Answer those questions and you'll know if a linked list with a file for storage is likely to be a good place to start.

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linked list implementation
    By denisa in forum C Programming
    Replies: 3
    Last Post: 10-04-2011, 09:10 PM
  2. Linked list implementation question
    By somekid413 in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2010, 02:33 AM
  3. One more linked list implementation
    By BlackOps in forum C Programming
    Replies: 17
    Last Post: 07-16-2009, 09:34 PM
  4. Linked List implementation
    By jcarouth in forum C Programming
    Replies: 4
    Last Post: 10-05-2005, 10:47 PM
  5. Linked List implementation of Queue
    By tdm2792 in forum C Programming
    Replies: 5
    Last Post: 11-04-2001, 04:04 PM