Reading data from a file using FileReader


// Java FileReader class is used to read data from the file.
// It returns data in byte format like FileInputStream class.
// It is character-oriented class which is used for file handling in java.

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

class JavaFileReaderDemo {

public static void main(String[] args)
throws FileNotFoundException, IOException {
FileReader fr = new FileReader("writer.txt");
int data;
while ((data = fr.read()) != -1) {
System.out.print((char) data);
}
System.out.println();
fr.close();
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...