array of files in C

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2004
Posts: 2
Reputation: dhanashree is an unknown quantity at this point 
Solved Threads: 0
dhanashree dhanashree is offline Offline
Newbie Poster

array of files in C

 
0
  #1
Sep 17th, 2004
Hi
I want to know...
can we able to create array of files and how ?????????
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 24
Reputation: XianBin is an unknown quantity at this point 
Solved Threads: 0
XianBin XianBin is offline Offline
Newbie Poster

Re: array of files in C

 
0
  #2
Sep 17th, 2004
you can try it by yourself.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 11
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: array of files in C

 
0
  #3
Sep 17th, 2004
You could certainly have an array of file HANDLES or the like...
  1. FILE* myFiles[10];
  2.  
  3. for (int i = 0; i < 10; i++)
  4. myFiles[i] = fopen("Chainsaw.txt","r");
is that what you mean?
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: array of files in C

 
0
  #4
Sep 17th, 2004
Hello,

An array of files makes no sense. Arrays are data structures; files are residents of a file system on a hard drive (or RAMdrive).

What are you really trying to do?

Christian
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3522 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC