I Need to write an Function in java which can take a parameter as filename and String Array and Write That Array to the given File. How to I Implement this using Function.
public void WriteToFile(String f, String arr)
FileWriter fstream = new FileWriter(f,true);
BufferedWriter out = new BufferedWriter(fstream);
Please Help Me for doing this I am New to this