Can some body know a function that removes white spaces in begining and end and also removes '\n' or '\0' from a file in C language
Recommended Answers
Jump to PostIn C language the fgets() function will trim leading and trailing spaces from words read. It will also skip over '\n'. Text files do not contain '\0' bytes; if your file does then it is not a text file.
All 3 Replies
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
Dream2code 12
Junior Poster
Dream2code 12
Junior Poster
WaltP
commented:
This is the second post I've seen tonight where you GIVE code away. We do not give code here, we help them code it themselves. -4
mvmalderen
commented:
Nope, no free cookies here. -3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.