View Poll Results: does a compiler compile C/C++ compiler mix both languages

Voters
0. You may not vote on this poll
  • yes

    0 0%
  • no

    0 0%
  • maby

    0 0%
  • i dno

    0 0%

reading and writeing data to hard drive

This is a discussion on reading and writeing data to hard drive within the C Programming forums, part of the General Programming Boards category; please help can someone please poast a small source code to read the data off the hard drive and then ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    2

    Question reading and writeing data to hard drive

    please help

    can someone please poast a small source code to read the data off the hard drive and then write a new file to the H/D

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    I do not understand your poll, what is its relation with your question?

    Look up the functions for opening, reading, writing and closing files: fopen(), fclose(), fread(), fwrite().

  3. #3
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807

    hmm..

    About your poll, if your question is, if an C++ compiler compiles both C and C++, the answer is, most C++ compiler compiles C code, but the C-only compilers like (Turbo-C) do not compile C++ codes.

    About writing in the hd, shiro gave you an answer.
    About File I/O, you can find a good tutorial here:
    http://cplus.about.com/library/weekly/aa051802a.htm

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    The poll is pointless, so I closed it. If you think otherwise, PM me and maybe I'll reconsider.

    >>About File I/O, you can find a good tutorial here
    Not much point in passing someone to a C++ tutorial when they've posted their question on a C board, imho.

    @Neuby_44
    There are plenty examples of file IO, do a search and see what you can find. Post your code if and when you have troubles.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading Data
    By Eber Kain in forum C++ Programming
    Replies: 1
    Last Post: 08-29-2001, 08:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21