Class FileUtils
java.lang.Object
FileUtils
File Utilities for reading and writing
- Since:
- August 20, 2026
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanneropenToRead(String fileName) Opens a file to read using the Scanner classstatic PrintWriteropenToWrite(String fileName) Opens a file to write using the PrintWriter class
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
openToRead
Opens a file to read using the Scanner class- Parameters:
fileName- name of the file to open- Returns:
- the Scanner object to the file
-
openToWrite
Opens a file to write using the PrintWriter class- Parameters:
fileName- name of the file to open- Returns:
- the PrintWriter object to the file
-