tvouriot.lib.io
Class Fichiers

java.lang.Object
  |
  +--tvouriot.lib.io.Fichiers

public class Fichiers
extends java.lang.Object

Classe implantant des fonctions sur les fichiers.


Constructor Summary
Fichiers()
           
 
Method Summary
static void openFile(javax.swing.JTextArea txt, java.io.File f)
          Fonction qui lit le contenu d'un fichier et l'affiche dans une zone de texte
static void saveFile(javax.swing.JTextArea txt, java.io.File f)
          Fonction qui créé un fichier avec le texte d'une zone de texte
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fichiers

public Fichiers()
Method Detail

openFile

public static void openFile(javax.swing.JTextArea txt,
                            java.io.File f)
Fonction qui lit le contenu d'un fichier et l'affiche dans une zone de texte
Parameters:
txt - zone de texte ou sera affiché le fichier
f - fichier à lire

saveFile

public static void saveFile(javax.swing.JTextArea txt,
                            java.io.File f)
Fonction qui créé un fichier avec le texte d'une zone de texte
Parameters:
txt - zone de texte
f - fichier