C program: How to read from one file and write into another? Indexing?

Look for a book/tutorial on opening, reading and writing files in C. It's fairly easy, and once you know how to do it, it's just a matter of opening one file for reading, and another one for writing I'm sorry I'm not more specific, but to explain in detail I'd have to write a loong answer that still would do you less good than reading a book on the subject, or a tutorial After you have a firm grip on that, take a look at fscanf and fprintf those two functions will help you parse and write your index easily edit : I really recommend not skipping the book/tutorial part. You're opening your files wrong, and I suspect you're reading the .

Bin erroneously too, though I'd have to see the rest of your program to be sure.

Look for a book/tutorial on opening, reading and writing files in C. It's fairly easy, and once you know how to do it, it's just a matter of opening one file for reading, and another one for writing. I'm sorry I'm not more specific, but to explain in detail I'd have to write a loong answer that still would do you less good than reading a book on the subject, or a tutorial.

After you have a firm grip on that, take a look at fscanf and fprintf, those two functions will help you parse and write your index easily. Edit: I really recommend not skipping the book/tutorial part. You're opening your files wrong, and I suspect you're reading the .

Bin erroneously too, though I'd have to see the rest of your program to be sure.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions