any help
any help
Last edited by munna_dude; 06-16-2010 at 10:56 AM.
Read the file line by line, combine all the lines into a single char[] using the string functions, iterate the contents and remove all \n's and then add one manually at the back.
How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.
im beginning to wonder if this is a joke. you've made 2 topics about this already and imo people have been quite generous with the help.
just go here Cprogramming.com - Tutorials - C File I/O
everything you need is on that page. its just a matter of reading it.
It's against forum policy to do homework i believe, we can help but we won't write the code for you, that is your job. You should check out the link LordPC gave you, it's all in there.
If you don't quite understand the code in that link, go back to the first tutorial and work your way back up until you get it.
How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.