Hello! First time posting here... usually on VBHowever, i have some problems with FileReader. This is what i've came up with (fileName is correct btw):
First, it returned 49... now... it's returning 49+some numbers. I know it's something easy, but just can't figure it out. Where am i going wrong?Code:String fileName="test.txt"; int sign; FileReader myStream=new FileReader(fileName); while((sign=myStream.read())!=-1){ System.out.print(sign); } myStream.Close();




However, i have some problems with FileReader. This is what i've came up with (fileName is correct btw):
Reply With Quote