Could you guys show me a sample code that stores contents of txt files into arrays? or could you explain to me how it works?I haven't used text files as input before. I need it for my word search program cheers!
Could you guys show me a sample code that stores contents of txt files into arrays? or could you explain to me how it works?I haven't used text files as input before. I need it for my word search program cheers!
What have you read up and tried? What is the file format that you are thinking of?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
You need to know the format as laserlight said, ascii, binary, etc? Since you mentioned words I would think ascii and how do you know a word starts and ends?