I am developing one project in C language,In it several records are there... By maintaing those kind of records,I easily store the record name {For eg. filename 1 filename2 means i know how to store it by using 2 Dim. array but i dont know how to print it or read it in a output}.If it okay means send the reply ASAP


Send ur ans to ... Plz...
<snip>
or
<snip>

suppose the array is :
char arr[7][14]; this means you can store 7 elements which are individualy an array of 14 elements.
you may take input like this

for(i=0;i<7;i++)
scanf("%s", arr[i]); // or gets(arr[i]);

and print like this

for(i=0;i<7;i++)
printf("%s ", arr[i]); // or puts(arr[i]);

ex. output at run time
Enter the string:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saterday
and you will notice the output
Sunday Monday Tuesday Wednesday Thursday Friday Saterday

You can use FILE structure to store your records by writing in the file.
Read the file to print the output .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.