Bom dia Pessoal!
Alguém pode me dizer porque não esta mostrando o texo do arquivo?
public static void main(String[] args) throws IOException
{
Scanner s = new Scanner(System.in);
PrintStream p = new PrintStream("arquivo.txt");
while (s.hasNextLine())
{
p.println(s.nextLine());
}
}