Answer to Question #167199 in Algorithms for Jean Claude

Question #167199

a) Discuss the files systems that are supported in Windows and the devices that are supported in these

file systems.


b) Write a C/C++ system program to read text from a file in the Windows file system, and print the

text to the screen. Compile and run the program and copy the source code into your answer booklet.


c) Discuss the Windows registry and its use and interpret the following registry keys:

i. HKEY_LOCAL_MACHINE

ii. HKEY_USERS

iii. HKEY_CLASSES_ROOT

iv. HKEY_CURRENT_USER


1
Expert's answer
2021-02-27T11:55:06-0500

a) Window support 3 types of file system - (1. NTFS, 2. FAT32, and 3. exFAT)

1.NTFS file system: It is the most modern file system, which commonly is used by window operating system and it also used in most non-removable devices.

2.FAT32: It is quite older file system, which is not very efficient as comparison to NTFS and also does not support big features.But it is very compatible with other operating systems.

3.exFAT: It is the substitute of FAT32 file system, it support more device and operating system.

b)

#include<stdio.h>
#include <stdlib.h>

int main()
{
    char arr[1000];
    FILE *fptr;

    if ((fptr = fopen("F:/r.txt", "r")) == NULL)
    {
        printf("Mentioned file does not exist in the current directory");
        exit(1);
    }

    fscanf(fptr,"%[^\n]", arr);
    printf("Data from the file:\n%s", arr);
    fclose(fptr);

    return 0;
}

c)

HKEY_LOCAL_MACHINE: It contains the information particular to the computer for any user. it is also abbreviated as HKLM.

HKEY_USERS: It contains all the activity loaded user profiles on the computer. HKEY_CURRENT_USER is a subkey of HKEY_USERS. It is sometimes abbreviated as HKU.

HKEY_CLASSES_ROOT : Is a subkey of HKEY_LOCAL_MACHINE\Software. The information that is stored here makes sure that the correct program opens when you open a file by using Windows Explorer. This key is sometimes abbreviated as HKCR

HKEY_CURRENT_USER: It Contains the root of the configuration information for the user who is currently logged on. The user's folders, screen colors, and Control Panel settings are stored here. This information is associated with the user's profile. This key is sometimes abbreviated as HKCU.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS