I'm writing a program which reads text from a file, and determines the number of sentences, words, and syllables of that file. The trick is, it must only read one character ...
On Jul 18, 11:53*am, ampheta...@gmail.com wrote: Is there a safe (unlikely to cause overflows or segfaults) way to load a text file into a char ** array? I thought of using getline, but it needs a fixed-length string, and I don't know how many lines or characters per line the file has. You have wrong information: getline needs a string, not ...
Hi, I was wondering how I could read, char by char letters from a text document. I'm making a game, and I have decided this method is probably the easiest way to make maps with collision ect. I the file is 48x27, so overall 1296 charactors need to be read, and the images drawn on screen, they then need to be ...