csm23
Class ReadFile

java.lang.Object
  |
  +--csm23.ReadFile

public class ReadFile
extends java.lang.Object

Title: Reads a text file

Description:

Copyright: Copyright (c) 2004

Company: University of Surrey


Constructor Summary
ReadFile(java.lang.String fileName)
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
           
 java.lang.String[] read()
          Reads a text file and return the contents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadFile

public ReadFile(java.lang.String fileName)
Constructor

Parameters:
fileName - the input file name
Method Detail

read

public java.lang.String[] read()
Reads a text file and return the contents

Returns:
content of text file line by line

main

public static void main(java.lang.String[] args)