java - How can I change multiple line from txt -
i have text file letters , want make them lower letters. code becomes last line
bufferedreader in = new bufferedreader(new filereader("c:\users\xxx\desktop\j.txt")); string line; while((line = in.readline()) != null) { blig=line.touppercase(); } try (bufferedwriter writer = new bufferedwriter(new filewriter("c:\users\xxx\desktop\j.txt"))) { writer.write(blig); }
bufferedreader in = new bufferedreader(new filereader("c:\users\xxx\desktop\j.txt")); bufferedwriter writer = new bufferedwriter(new filewriter("c:\users\xxx\desktop\lowerj.txt")); string line; while((line = in.readline()) != null) { writer.write(line.tolowercase()); }
Comments
Post a Comment