PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > make content's of file in binary form to zero and convert them back
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
make content's of file in binary form to zero and convert them back

Réponse
 
LinkBack Outils de la discussion
Vieux 05/02/2008, 22h40   #1
Kelsey Bjarnason
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert themback

On Tue, 05 Feb 2008 20:33:09 -0800, checoo wrote:

> I am trying to change the content's of a file in binary form to zero and
> then again change them back.
>
> Can anyone me with this.


Sure:

1) Make copy of file
2) Determine number of bytes to write
3) Write 0 bytes to original file
4) Copy duplicate file back to original file
5) Optionally remove duplicated file

Sum total effect of operation: spin the disk a while. Assuming the file
is on a disk.

  Réponse avec citation
Vieux 06/02/2008, 01h40   #2
Kelsey Bjarnason
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert themback

On Wed, 06 Feb 2008 20:05:04 +1300, Ian Collins wrote:

> Kelsey Bjarnason wrote:
>
> When are you going to fix your clock?


Err... why? Seems to be okay at this end. Says 1:39 AM now, and it's
1:39 AM.

  Réponse avec citation
Vieux 06/02/2008, 04h33   #3
checoo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut make content's of file in binary form to zero and convert them back

I am trying to change the content's of a file in binary form to zero
and then again change them back.

Can anyone me with this.

Thank's in advance
  Réponse avec citation
Vieux 06/02/2008, 04h35   #4
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert themback

checoo wrote:
> I am trying to change the content's of a file in binary form to zero
> and then again change them back.
>

Why?

> Can anyone me with this.
>

A bit more detail would .

--
Ian Collins.
  Réponse avec citation
Vieux 06/02/2008, 07h05   #5
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert themback

Kelsey Bjarnason wrote:

When are you going to fix your clock?

--
Ian Collins.
  Réponse avec citation
Vieux 06/02/2008, 13h14   #6
CBFalconer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert them back

Kelsey Bjarnason wrote:
> Ian Collins wrote:
>
>> When are you going to fix your clock?

>
> Err... why? Seems to be okay at this end. Says 1:39 AM now,
> and it's 1:39 AM.


I see nothing wrong, assuming he is sending from the GMT timezone.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com

  Réponse avec citation
Vieux 06/02/2008, 13h56   #7
Richard Tobin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make content's of file in binary form to zero and convert themback

In article <6pfn75-e9f.ln1@spanky.localhost.net>,
Kelsey Bjarnason <kbjarnason@gmail.com> wrote:

>Err... why? Seems to be okay at this end. Says 1:39 AM now, and it's
>1:39 AM.


Your post has this header:

Date: Wed Feb 06 01:40:22 GMT 2008

and is a reply to Ian's which has this header:

Date: Wed Feb 06 07:05:04 GMT 2008

so clearly one of you has the wrong time.

Since according to my server Ian's arrived at 07:09 GMT and yours arrived
at 09:50 GMT, I'd guess that it's yours that is wrong.

My guess is that you are 8 hours behind GMT and have your timezone set
wrong.

-- Richard
--
:wq
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h27.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10623 seconds with 15 queries