Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Re: win2unix

by Anonymous Monk
on Jul 21, 2002 at 03:16 UTC ( #183739=note: print w/replies, xml ) Need Help??

in reply to Re: win2unix
in thread win2unix

Closing files is probably still a good habbit to get into. Consider:
That it documents that you won't be messing with a file anymore.
And if you use flock(), and are into the habbit of NOT closing your files, you could end up with a messy unintentional bottleneck

Replies are listed 'Best First'.
Re: Re: Re: win2unix
by Courage (Parson) on Jul 21, 2002 at 08:07 UTC
    I did not complained that it's better not to close filehandles, just joke come into my mind (as I marked it).

    Mostly I tried to spot bugs in that program. Did you noticed that it will eat first innocent first line from a file?

    And, ackohno, to ask your question, yes, I use \r\n=>\n conversion on Win32.

    addition and once again: if you forgot that you already used that program, and use it again, it will damage file by eating it from two sides: almost each time will eat a line from top, and each time eat one character from right side.

    Courage, the Cowardly Dog.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183739]
[ambrus]: 1nickt: hmm. that's not my experience. I would have to pay extra for choosing a seat, but I still don't usually get into a middle seat.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-12-18 14:01 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (487 votes). Check out past polls.