how to find a word consisting of one letter and extra spaces in each line in the file? write found in a new file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to find a word consisting of one letter and extra spaces in each line in the file? write found in a new file

example :file1: igd j \n dhy k \n file2: j \n k\n

19th May 2018, 8:59 PM
Irina
1 Answer
+ 1
Answers to this question are in a book I have been reading for C. "The C Programming Language" by Brian Kernighan and Dennis Ritchie dtd 1988. There is some code in there for character counting (without using strlen), line counting, word counting, ect. You can do a Google search and download the book or find a copy at your local library. It has been a very good read for a newbie such as myself.
31st Mar 2019, 10:34 AM
William Owens
William Owens - avatar