943,524 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 5566
  • C RSS
Sep 17th, 2004
0

array of files in C

Expand Post »
Hi
I want to know...
can we able to create array of files and how ?????????
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dhanashree is offline Offline
2 posts
since Sep 2004
Sep 17th, 2004
0

Re: array of files in C

you can try it by yourself.
Reputation Points: 15
Solved Threads: 0
Newbie Poster
XianBin is offline Offline
24 posts
since Aug 2004
Sep 17th, 2004
0

Re: array of files in C

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?
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Sep 17th, 2004
0

Re: array of files in C

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
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: file pointer increament
Next Thread in C Forum Timeline: Story Builder





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC