public class Linus
extends java.lang.Object
makeLine
is called. Linus tracks the file's current line number in a member variable.Constructor and Description |
---|
Linus() |
Linus(java.io.File file)
Create a data stream to be read from the File.
|
Linus(java.io.File file,
java.lang.String utf) |
Linus(java.lang.String fileName)
Create a data stream to be read from the file named
fileName . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
makeLine()
Return a String with the image of one line of the file, followed by a newLine (ASCII 10).
|
public Linus()
public Linus(java.lang.String fileName)
fileName
.fileName
- String: pathname for the file to be read.public Linus(java.io.File file, java.lang.String utf)
public Linus(java.io.File file)
file
- The file to be read.