Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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

Replies are listed 'Best First'.
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 having an uproarious good time at the Monastery: (5)
As of 2016-06-28 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (350 votes). Check out past polls.