- #1
hilman
- 17
- 0
This is a term I found in a programming tutorial. Since English is not my first language, and this term is also kind of a computer term, I am not so clear with the meaning. Can someone explain it to me?
Thanks.
Thanks.
hilman said:This is a term I found in a programming tutorial.
I'm sorry because I forgot. I think it was python because I was just doing some fast reading. Anyway, I think I do got the point. Thanks.jtbell said:For which programming language? Which operation or function was the tutorial discussing? If you tell us the context in which that term was used, we can be more specific in our response.
phinds said:because all the line feeds have been removed.
OOPS. Thanks.meBigGuy said:Between Unix and Windows the carriage return is added/removed, not the newline. In Unix, text lines are terminated with newline only (\n).
A trailing newline refers to a line break at the end of a sequence of characters in a text file.
When a trailing newline is stripped, it means that the line break at the end of a sequence of characters is removed or deleted from the text file.
A trailing newline is often stripped in programming languages or text editors to avoid any unintended or unnecessary line breaks in the output.
Stripping a trailing newline does not change the content of the text file, but it may affect the way the file is displayed or interpreted by certain programs or systems.
No, stripping a trailing newline is not always necessary. In some cases, it may be preferred to keep the line break at the end of a sequence of characters for formatting or readability purposes.