i am using FileWriter object to write some string in file imtiyaz.txt but i also want to use line separator manually by '\n' but i am not able to separate line by '\n' i know that i can resolve this problem by using BufferedWriter but i want to do by using FileWrite and i wnat to know that is it possible or not if it is not possible then why ?
package first; import java.io.*;
public class Example {
    public static void main(String[] args) throws IOException {
    
        FileWriter fw = new FileWriter("imtiyaz.txt");
        fw.write("hellow imtiyaz \n hi how are you ?");
        fw.write('\n');
        fw.write("i think you are revising java concept");
        fw.flush();
        fw.close();
        
    }
}
 
     
    