🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #986

Re: escribir el tamano de un fichero en otro, pero no en ascii

#986
From: gamo
Date: Mon, 24 Jul 2006 19:57
21 lines
1777 bytes
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323328-1794859903-1153771037=:26363
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Mon, 24 Jul 2006, gamo wrote:

> Si lo hicieses en Perl
> (stat)[7] te da el tama=F1o decimal en bytes

=09$num=3D(stat($filename))[7];

> perldoc -f pack  te dice como empaquetarlos en 4 bytes=20

=09$int=3Dpack "L", $num;  #untested, justo 32 bits=20

> Lo demas es open, print, close y poco m=E1s.
> Saludos=20
--8323328-1794859903-1153771037=:26363--
Technical Details
Message-ID: <Pine.LNX.4.64.0607242154140.26363@jvz.es>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amo
References: <1153759345.956147.65760@s13g2000cwa.googlegroups.com> <Pine.LNX.4.64.0607242049310.24520@jvz.es>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,15d891730dc7298
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Newsgroups: es.comp.os.linux.programacion
Date: Mon, 24 Jul 2006 21:57:17 +0200
From: gamo <gamo@telecable.es>
X-X-Sender: amo@jvz.es
Reply-To: gamo@telecable.es
Subject: Re: escribir el tamano de un fichero en otro, pero no en ascii
In-Reply-To: <Pine.LNX.4.64.0607242049310.24520@jvz.es>
Message-ID: <Pine.LNX.4.64.0607242154140.26363@jvz.es>
References: <1153759345.956147.65760@s13g2000cwa.googlegroups.com>
 <Pine.LNX.4.64.0607242049310.24520@jvz.es>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1794859903-1153771037=:26363"
NNTP-Posting-Host: 83.97.181.149
X-Trace: filemon2.isp.telecable.es 1153770935 83.97.181.149 (24 Jul 2006 21:55:35 +0200)
Organization: TeleCable, S.A.U.
Lines: 21
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amo