Greetings, You are going to need to provide a lot more information before anyone even attempts to help you.
Why is this a Netbeans problem? Did you make a project of some kind? If so, what type of project? What did you do via Netbeans? You are essentially saying "I did some things and I expected some other things to happen, but those other things didn't happen. Please help." No one on this mailing list is paid by anyone to provide help; you are at the mercy of volunteers, who might provide help if there is an indication of some level of effort from the person requesting such help. Please provide more detail upon what you did using Netbeans and what you expected Nebeans to do when you did whatever that was. -- Mark A. Flacy mfl...@verizon.net On Thursday, March 11, 2021 10:50:13 PM CST Zulfi Khan wrote: > Hi,I am trying to run the following program: > ackage com.mycompany.fileWrite; > import java.io.File; > import java.io.FileWriter; > import java.io.BufferedWriter; > import java.io.IOException; > > /** > * > * @author zulfi > */ > public class Main { > public static void main( String[] args ) { > > try { > String data = " Tutorials Point is a best website in the world"; > File f1 = new File("/home/zulfi/abc.txt"); > if(!f1.exists()) { > f1.createNewFile(); > } > > FileWriter fileWritter = new FileWriter(f1.getName(),true); > BufferedWriter bw = new BufferedWriter(fileWritter); > bw.write(data); > bw.close(); > System.out.println("Done"); > } catch(IOException e){ > e.printStackTrace(); > } > } > > } > > > > But when I am checking the file there is no data in the file. > Somebody please guide me. > Zulfi. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists