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

0. You may not vote on this poll
  • yes

    0 0%
  • no

    0 0%
  • maby

    0 0%
  • i dno

    0 0%

Thread: reading and writeing data to hard drive

  1. #1
    Registered User
    Join Date
    Jan 2003

    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
    Groningen (NL)
    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


    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:

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    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.

    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