Up vote -9 down vote favorite share g+ share fb share tw.
I need a function that receives a file descriptor, and extracts to a string all the text between given substring delimiters. For example, if the text in the file is: hello world, beginxyz abc def end 123 world and the delimiters are "begin" and "end", the string "beginxyz abc def end" should be returned. Note that the file can have several lines and be of any length, and the substring to be extract can also span several lines.
Will I have to make a parser, comparing each caracter with the delimiters? I see no file search function in stdio or C++ STL. A solution in either C or C++ would be useful.
C++ c string file parsing link|improve this question asked 2 hours agoGustavo N11.
– nightcracker 2 hours ago 1 "A solution in either C or C++ would be useful. " 1) No one is going to write 100% of the code for you. 2) Pick a single language.
– ildjarn 2 hours ago 3 What have you tried? – Joachim Pileborg 2 hours ago.
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.