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! :)
Printable View
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?
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?