Solved

File Pointer.........

Posted on 2003-10-30
1
330 Views
Last Modified: 2010-04-15
Hi,

Consider the following piece of code:
                            FILE *fp;
                            fp = fopen("myfile.dat","r");
    Now fp points to  what?
        1. The first character in the file.
        2. A structure which contains a char pointer  which points to the first character in the file.
        3. The name of the file.                                

Thanx.
0
Comment
Question by:hemanexp
1 Comment
 
LVL 6

Accepted Solution

by:
Ajar earned 20 total points
ID: 9655904
open  <stdio.h> to see the structure of  FILE structure

fp contains a lot of information about the file  in addition to the handle of the open file
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question