writting to files

This is a discussion on writting to files within the C++ Programming forums, part of the General Programming Boards category; I am writting to a file using cin and whenever i type a space to seperate two characters or strings ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    118

    writting to files

    I am writting to a file using cin and whenever i type a space to seperate two characters or strings it stops reading in into my file.
    e.g if i write a boy is a man,My file only stores the a

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,523
    How did you manage to write to a file using cin ? It is for console input.
    Paste your code here, we are not mind readers ~!
    Manasij Mukherjee | gcc-4.9.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writting hex value into files
    By dhuan in forum C++ Programming
    Replies: 15
    Last Post: 11-04-2010, 12:47 AM
  2. Problem reading/writting binary files.
    By pajaro in forum C Programming
    Replies: 2
    Last Post: 09-05-2009, 01:25 PM
  3. IDEA: Writting
    By ZerOrDie in forum Contests Board
    Replies: 0
    Last Post: 10-07-2002, 05:25 PM
  4. help writting code
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 02-28-2002, 02:05 PM

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