Operating Systems File Management Paper & Presentation
Description
Part 1 – Theory: In this part, you need to discuss in detail the following topics:
- File management: You must discuss each topic in terms of
concepts, issues, solutions, usage, real work examples, etc - Part 2 – Implementation:In the implementation part, you must implement the pervious
discussed topic in Java:
File management - Note:You must screenshot and illustrate your
results for each part/topic. You also must submit your Java codes on the
Blackboard.
Topic 1 – File Management:
You are given a text file “namesList,” which contains
a list of names. You need to read the file, store the names in a list, and then
count the number of each name (Ahmed
Ali, and Muhammad). Next, you need to create a new text file using Java,
order the names alphabetically, and print the name to the new created file named
“newNameList.”
Hint 1:
You can read the file using Java built-in classes (e.g.,
BufferedReader class, Scanner class. File Reader class). To read the file, you must
do the following
1.
Create a new function named
“readFile.” Inside the function, you must write your code. Here is an
example to create a list:
List<String> list = new ArrayList<>();
2.
Once you stored the data on
the list, you now can print/show the list’s data using a Java Foor Loop.<strong>for</strong>(<strong>int</strong> i = 0; i < 5; i++)
{
System.out.println(i);
}
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."