Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: problems with truncate function

by tobias_hofer (Friar)
on Jun 26, 2013 at 07:59 UTC ( #1040719=note: print w/ replies, xml ) Need Help??


in reply to problems with truncate function

I gave a try with a simple file and it works fine.
You truncate to 0, means your file will be empty afterwards.
if size, 0 in your case, is greater than the files length then the behavior is undefined.
Means you got to have some content in your file. Do you have content in your file?
See: tuncate

Cheers!
Tobias


Comment on Re: problems with truncate function
Re^2: problems with truncate function
by david2008 (Scribe) on Jun 26, 2013 at 09:18 UTC
    Hi,
    My file has content.
    BR,
    David

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040719]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-08-23 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls