print text file into string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kim6987
    New Member
    • Sep 2007
    • 12

    #1

    print text file into string

    Can any one show me how to write the code in C when I want to read the content of a text file and write it into a string?
    Thank you!
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Have you tried searching for something like c read file on Google yet? I must say, Google can be very friendly and helpfull when it comes to such questions.

    Greetings,
    Nepomuk

    Comment

    • jorba101
      New Member
      • Jun 2008
      • 86

      #3
      Hint,

      Look for: fopen, fclose, fscanf, fgetc, fgets.. and f-something functions whose prototype is in stdio.h

      Comment

      Working...