Re: [racket-users] Does `read-words/line' preserve last newline information?

2016-04-18 Thread Quico Jurado
> `file->lines` produces the contents of the lines, without the > newlines. So this is as intended. This is also the behavior I would > have expected from `read-words/line` originally. > > Sam > Hi, Part 2 of the HtDP2e book, recommends the usage `read-words/line' for preserving the organizati

Re: [racket-users] Does `read-words/line' preserve last newline information?

2016-04-17 Thread Quico Jurado
On Saturday, April 16, 2016 at 4:20:16 PM UTC-6, Robby Findler wrote: > And in response to Quico, I would say that what's happening here is > that read-line (and therefore read-words/line) are interpreting a > "line" to be a bunch of characters followed by a specific set of > delimiters (a newline

[racket-users] Does `read-words/line' preserve last newline information?

2016-04-15 Thread Quico Jurado
Hello, I posted this question in SO, but hoping to get more answers here. I'm reading Part two from the 2htdp book, and I'm curious about the behavior of the read-words/line function that lives under 2htdp/batch-io. I created two different files, the first file having a \n at the end of the fi