PrintWriter has a different api than spit. PrintWriter has the ability to
print objects and also the ability to "println" objects. When printing a
"line", it inserts the host-specific new line characters. If you print a
String with PrintWriter, it will be exactly the string you tell it (new
lin
On Mon, Nov 25, 2013 at 6:29 AM, Cedric Greevey wrote:
> (println) outputs nothing *but* the host's line terminator.
Note that you have not embedded a "\n" character in anything in that example.
What does (println "\n") print?
--
In Christ,
Timmy V.
http://blog.twonegatives.com/
http://five.
(println) outputs nothing *but* the host's line terminator.
On Mon, Nov 25, 2013 at 6:22 AM, Tim Visher wrote:
> On Mon, Nov 25, 2013 at 6:18 AM, Cedric Greevey
> wrote:
> > And yet it does happen, with PrintWriter and similar. Consider the
> output of
> > (println) on different operating syst
On Mon, Nov 25, 2013 at 6:18 AM, Cedric Greevey wrote:
> And yet it does happen, with PrintWriter and similar. Consider the output of
> (println) on different operating systems.
Do you have an example of println converting a "\n" character embedded
in a string to the host's line terminator?
--
And yet it does happen, with PrintWriter and similar. Consider the output
of (println) on different operating systems.
On Mon, Nov 25, 2013 at 12:59 AM, Stefan Kamphausen wrote:
> I agree with Alex. I would not want any magic to happen
> to my string.
>
> Best,
> Stefan
>
> --
> --
> You receive
I agree with Alex. I would not want any magic to happen
to my string.
Best,
Stefan
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - plea
On Sun, Nov 24, 2013 at 7:53 PM, Cedric Greevey wrote:
> I already have more than enough user/pass pairs to keep straight. I'm not
> creating yet another one just to submit one lousy bug report that I've
> *already* posted where I know the developers often read.
You can try something like LastPas
Sorry. I didn't read the OP carefully enough. I agree with Alex.
The JVM (and no platform I'm aware of) never has and probably never
will offer to convert your end of line characters for you to whatever
your target system is.
On Sun, Nov 24, 2013 at 6:09 PM, Alex Miller wrote:
> I do not think t
I already have more than enough user/pass pairs to keep straight. I'm not
creating yet another one just to submit one lousy bug report that I've
*already* posted where I know the developers often read.
On Sun, Nov 24, 2013 at 7:32 PM, Timothy Baldridge wrote:
> > Not everyone wants to go to that
> Not everyone wants to go to that much trouble just to tell
> everyone what he already told everyone via this list.
So instead you ask that language maintainers read every email you write, in
the off-chance that you might be reporting a bug? Don't be ridiculous. If
you think you might have a bug,
I do not think this is a bug. Spit takes string content and puts it in a file.
I do not expect it to modify that string. It's up to you to create the proper
string.
Alex
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, sen
Not everyone wants to go to that much trouble just to tell everyone what he
already told everyone via this list.
On Sun, Nov 24, 2013 at 4:56 PM, Timothy Baldridge wrote:
> Anyone can create an account on JIRA and create a ticket.
>
> Timothy
>
>
> On Sun, Nov 24, 2013 at 2:19 PM, Cedric Greevey
Anyone can create an account on JIRA and create a ticket.
Timothy
On Sun, Nov 24, 2013 at 2:19 PM, Cedric Greevey wrote:
> On Sun, Nov 24, 2013 at 3:36 PM, Tim Visher wrote:
>
>> Sounds like a bug to me. You could open a ticket to get further
>> discussion going.
>>
>
> Actually, TTBOMK I can
On Sun, Nov 24, 2013 at 3:36 PM, Tim Visher wrote:
> Sounds like a bug to me. You could open a ticket to get further
> discussion going.
>
Actually, TTBOMK I cannot, since I think one needs an account at some site
I don't have an account at to do that. But someone who does and has a 'doze
box ca
Sounds like a bug to me. You could open a ticket to get further
discussion going.
On Sun, Nov 24, 2013 at 12:20 AM, Cedric Greevey wrote:
> (spit "C:\\foo.txt" "test1\n")
> (spit "C:\\foo.txt" "test2\n" :append true)
>
> open file in notepad => "test1test2"
>
> (spit "C:\\foo.txt" "test1\r\n")
>
(spit "C:\\foo.txt" "test1\n")
(spit "C:\\foo.txt" "test2\n" :append true)
open file in notepad => "test1test2"
(spit "C:\\foo.txt" "test1\r\n")
(spit "C:\\foo.txt" "test2\r\n" :append true)
open file in notepad => "test1
test2"
So a newline in the string passed to spit
16 matches
Mail list logo