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
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.