Skip to content

This project will validate your understanding of file handling in Java.

Notifications You must be signed in to change notification settings

malekcoders/File-Handling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Handling Project

Objectives

Understand how Java handles files.

Concepts

These concepts are the main used concepts in the project solution, kindly read the provided resources if any is new to you.

Concepts Resources
File Handling in Java Edureka Java handling file
Understand File, FileReader,and FileWriter class Artical File class in Java
Write into a file DigitalOcean Artical - Java File Handling

Problem

Write a program that create a text file, then write into that text file.

Implementation

Do the implementation of the createFile method:

  1. Create a file object of FileWriter class with the name that is given in the method argument.
  2. Write into the file, by using the write method of the FileWriter class.
  3. Close the file stream, by using the close method of the FileWriter class.
  4. In the main method, call the createFile method.
public static void createFile(String fileName) throws IOException {
    /* Your code here */
}

About

This project will validate your understanding of file handling in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages