File Handling - Java

  • `writeString`
    
  • `readString`
    
  • CSV (Comma Separated Value) File
    • Create a .csv file and Read it
        String line;
        BufferedReader input = new BufferedReader(new FileReader("filePath.csv"));
        while ((line = input.readLine()) != null) {
          String[] faculty = line.split(",");
        }
      
Share: