Wed May 20, 2009 10:54 am
identity:identity number:endidentityname:Enter Your
identity:identity number:endidentityname:Enter Your
identity:identity number:endidentityname:Enter Your
The follow method try read from "display.txt" char by char until end of file.
for this proposal i perform casting: (char)in.read()
my problem is how method knows where is the end of file
while((c = (char)in.read()) != "????what suppose be here?????" )
kindly see method bellow:
File inputFile = new File("C:/ADELANTE/divelog/src/divelog/display.txt");
public void MeabedFile()
{
try
{
char c;
FileReader in = new FileReader(inputFile);
while((c = (char)in.read()) != "????what suppose be here????" )
{
System.out.print(c);
}
in.close();
}
catch (IOException e)
{
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.