Solved

File Pointer.........

Posted on 2003-10-30
1
300 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now