Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Main {
- public static void main(String[] args) {
- String tempLine, resultLine = "";
- try (BufferedReader reader = new BufferedReader(new InputStreamReader(
- new FileInputStream("input.txt")))) {
- while (((tempLine = reader.readLine())) != null) {
- for (String curString : tempLine.split("\t")) {
- resultLine += curString + " ";
- System.out.print(resultLine);
- }
- resultLine = "";
- System.out.println();
- }
- } catch (IOException ex) {
- ex.getMessage();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement