I am writing a program and have gotten half of the way there, but I could use some help on the last 50%. I have a function that allows a user to input a line and then it sends it to a text file. Each inputted member is sent to the text file on a new line. This is working fine, I am having trouble with the read function. This is supposed to read the whole text file and print it to cout. The only way I know to do this is to use getline() to send it to a string, but this only does one line. What other way can I do this?
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 01 February 2013 - 07:07 PM
Posted 01 February 2013 - 07:29 PM
You could read this tutorial about writing and reading files in c
For the rest, please paste your code here so we can see how can we help you
Posted 02 February 2013 - 08:36 PM
Thanks! I figured it out using that tutorial.