Java: Afficher le contenu d’un fichier en Hexadécimale

Author:


{filelink=6049}


import java.io.FileInputStream;

public class FichierEnHex {
  public static void main(String[] argv) throws Exception {
    FileInputStream fin = new FileInputStream("fichier.txt");
    int i;
    do {
      i = fin.read();
      if (i != -1)
        System.out.printf("%02X ", i);
    } while (i != -1);
    fin.close();
  }
}

A Voir sur le même Sujet:

  • lecture fichier en hexa java
  • un fichier texte au fichier hexadécimale
  • lire fichier hexadecimal java
  • nom de fichier en hexadecimal
  • COURS DE CODE SOURCE JAVA
  • reseau hexadecimal java
  • lecture d'un fichier hexa java
  • messageformat proprietes
  • afficher une image hexadecimal en java
  • java traitement fichier hexa

Leave a Reply

Your email address will not be published. Required fields are marked *