Basic File handling program in java with reader/writer

abhas at 13h15
27
Jun
2009
Basic File handling program in java with reader/writer

import java.io.*;


class fileH2
{
public static void main(String args[])throws IOException
{
BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));

System.out.println("Enter a number of elements");
int n=Integer.parseInt(obj.readLine());

FileWriter fw=new FileWriter("Stu2.dat",true);
BufferedWriter Bw
About
This topic belongs to the forum
  • Numbers of topics : 1431
  • Numbers of messages : 8652
  • Numbers of users : 6367
  • Numbers of points : 103
Similar topics
I need a Batch file to run a Java Application. Assume that: 1. The batch file is placed in the Application's root directory. 2. Compilation is not required, only execute. Please do not suggest for executable jar file. That is not what I am
Look the example carefully--Code:import import java.util.InputMismatchException; import java.util.Scanner;   public class DivideByZeroNoExceptionHandling{                // demonstrates throwing an exception when a divide-by-zero
Suppose, I have given inputs in a window(like textfield, textarea, combobox etc.). Based on the information I need to write something in a .pdf file. How can I do it? Please reply me quickly.
Hey guys... Remember the handout madam gave for us to study the Migration from C++ to Java thingy? I am providing the pdf form for you guys in case you lost the hand out, didn't get the hand out etc etc. But before downloading, read the following
Ingin membuat file PDF dari .doc atau dokumen situs atau lainnya? Pakai PDFCreator: http://sourceforge.net/projects/pdfcreator/ Program tersebut berfungsi untuk membuat file pdf termasuk konversi dari .doc dan .docx dan plugin pada Mozilla
Forums from same category
  • IT INCLUDE EACH AND EVERY ASPECT OF THE INTERNET ABOUT WHICH YOU WANT AND INFORMATION AND WANT TO SHARE KNOWLEDGE.

  • Free forum : I am a third year undergraduate student of IIT Kharagpur. The purpose behind making this forum is to bring all the IAS aspirants at one platform where they can share their study tips and

  • Where we can talk freely with normal people.

  • Free forum : AIEEENOW provides you a platform where you can discuss all your queries related to AIEEE, IIT and others amongst yourself. Counselling Experts would also guide you in counselling from tim

  • USMLE Forum USMLE STEP 123 Medical Books PG Entrance Exams

  • Discusess all about ibpsexam preparation tips po's and Clerk

See also
more_less
Informations

0 Replies For the topic :
"Basic File handling program in java with reader/writer"

This topic has been viewed 9999 times.

Last message :
27/06/2009 at 13h15 by "abhas"