I have a text file where text file Looks like output.txt
| Component | Tests Run | Tests Failed |
|:-----------|:-----------:|:-----------------------------------------------|
| Server | 948 | :white_check_mark: 0 |
| Web Client | 123 | :warning: 2 [(see details)](http://linktologs) |
| iOS Client | 78 | :warning: 3 [(see details)](http://linktologs) |
Here my work purpose I need to push all the code somewhere so that it will show like a table I want to read all the text from the text file and print the text together.
Currently its print line by line
try {
FileReader reader = new FileReader("C:\\Users\\Zsbappa\\Pictures\\test\\output.txt");
int line;
while ((line = reader.read()) != -1) {
System.out.print((char) line);
}
reader.close();
} catch (IOException e) {
e.printStackTrace();
}
Any suggestion will really appreciated