Thread: read text file into string

  1. #1
    Registered User
    Join Date
    Nov 2006
    Location
    under your bed....
    Posts
    24

    read text file into string

    Does anyone know how to read a text file (.txt) into a string variable? It's so i can then send it to a multi-lined text box.
    Thanks in advanced

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    What's a "string variable"?

    If you're really using C, then whatever solution you use should probably take advantage of fgets().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  3. Replies: 4
    Last Post: 03-03-2006, 02:11 AM
  4. Replies: 1
    Last Post: 09-10-2005, 06:02 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM