Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help on this file systems homework Questions: For each of the following i

ID: 3599802 • Letter: P

Question

Please help on this file systems homework

Questions: For each of the following items, indicate to which of the five categories of data it belongs (file system, content, metadata, filename, and application) 1. a. Partition/volume size b. Partition/volume starting/ending location c. File header d. Filename e. Number of sectors per cluster f. Directory parent-child relationships g. File fragmentation information h. File's owner 2. For each of the following items, indicate whether the data is essential or non-essential data, and briefly explain your rationale. a. Filename (excluding the extension) b. File extension (i.e. .doc) c. Data store that indicates which sectors d. File header e. File content f. File date/time stamps g. Cluster allocation status information h. Quota information are good vs. bad 3. Which type of search would successfully find a string that spans two, non-adjacent clusters "logical file search" or "logical file system level search?" Explain your answer.

Explanation / Answer

package com;

import java.io.BufferedReader;

import java.io.FileReader;

import java.io.IOException;

public class ReadFileExample1 {

private static final String FILENAME = "D:\test.txt";

public static void main(String[] args) {

BufferedReader br = null;

FileReader fr = null;

try {

//br = new BufferedReader(new FileReader(FILENAME));

fr = new FileReader(FILENAME);

br = new BufferedReader(fr);

String sCurrentLine;

while ((sCurrentLine = br.readLine()) != null) {

System.out.println(sCurrentLine);

}

} catch (IOException e) {

e.printStackTrace();

} finally {

try {

if (br != null)

br.close();

if (fr != null)

fr.close();

} catch (IOException ex) {

ex.printStackTrace();

}

}

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote