Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
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 pondering the Monastery: (9)
As of 2015-08-27 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (334 votes), past polls