help with cstrings!!

This is a discussion on help with cstrings!! within the C++ Programming forums, part of the General Programming Boards category; this may be a stupid question, or im not thinking correctly, but, im reading in a value from a file ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    3

    help with cstrings!!

    this may be a stupid question, or im not thinking correctly, but, im reading in a value from a file that consists of characters and integers (ex. DL948E) and assigning it to a cstring.

    how can i read the whole thing and assign it, since its contains both integers and characters?

    thanx in advance....

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    use getline(), for more info look here: http://cppreference.com/cppio_details.html

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    3
    thanx for the help, i will give that a shot...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cstrings and strings
    By dragongunner in forum C++ Programming
    Replies: 28
    Last Post: 02-20-2008, 03:10 PM
  2. Concatenating cstrings
    By trev456 in forum C++ Programming
    Replies: 3
    Last Post: 04-24-2007, 12:26 AM
  3. Formatting CStrings
    By adamK in forum C++ Programming
    Replies: 2
    Last Post: 09-14-2004, 09:05 AM
  4. MFC: CStrings & binary files question(s)
    By BrianK in forum Windows Programming
    Replies: 0
    Last Post: 06-24-2004, 05:41 PM
  5. Simple File IO with CStrings....
    By Unimatrix_001 in forum C++ Programming
    Replies: 1
    Last Post: 05-15-2003, 02:35 PM

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