473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

[C++] Creating File System Constole App

Hi Dear Fellows!
I recently have passed Java! And I choose C++ way! So and now I need to understand how can I built below problem!

With a binary file operations of addition, removal and replacement of record are carried out. To write function by means of which primary input of the information from the keyboard and rewriting in a file is carried out. To write function, transformed data of an initial file to a text file in the form of the sheet with the column of the general results. Removal and replacement of records to carry out by means of rewriting an initial file in new. By search keep the chosen records in a new file. Information record about a file contains fields: the catalogue, a name of a file, expansion, date and time of creation, attributes " only reading ", "hidden", "system", an attribute of removal, quantity of the allocated sectors (the size of sector to accept equal 512 bytes). Search to carry out under the catalogue, date of creation, on the basis of removal. To provide operation of real removal of a file by means of rewriting a file-catalogue. I wish to learn as it to solve!!! There can be any advice? And it is desirable example (code)!
Yours faithfully, XDev!
Dec 7 '07 #1
3 2261
weaknessforcats
9,208 Expert Mod 8TB
Please read the posting guidelines.

I can help with specific programming and design issues but I cannot provide complete solutions or act as a tutor.
Dec 7 '07 #2
Yee But.
I'm writing a filesystem abstraction layer, and I'm pretty stumped on
the best way to represent it. Stripping out a bunch of stuff, we get
down to:

class node
{
bool type; // 0 - file, 1 - folder
string name;
bool read;
bool write;
bool list;
};

class file : public node
{
//here is realization of data storage -)
public:
string Directory;
string FileName;
string Expansion;
string DateOfCreating;
string Attributes;
string SingOfDel;
string CountOfSectors;
string Buf;
};

class folder : public node
{
list<node> root; here is list of files, directories in directories
};

I'm not asking how to build all my program! I just need any advices can i code it! And i'll be so happy if here anybody can help me to find a key, to solve my problem! With Best Regards, XDev!
Dec 8 '07 #3
People Help!!! Deadline is sooon!
Dec 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: mcmg | last post by:
Hi, I have an asp app that works fine on a windows xp machine but does not work on a windows 2000 server. I have the following code in my global.asa: <OBJECT RUNAT=Server SCOPE=SESSION...
1
by: Chris Kennedy | last post by:
How do create a dataset from scratch based on an XML schema. This will not be filled by a dataadapter. It will be a dataset which I add rows to and then save as an XML file. All the example depend...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
3
by: kris.dorey | last post by:
Hi, Ive got the following code which seems ok but when the user runs the function for a second time I get an error message stating that the mdb is in use by another process. There is still an...
2
by: Val3 | last post by:
Hi all. I need to build dll(s) and windows services using VB .NET 2005 Express. When I make File/New project the windows contain only Windows application, Windows control library, Console...
3
by: gregory_may | last post by:
Below is a routine I use for creating log files. It works great on most VB Applications. However, for web services, it needs some help. The problem is I cant reflect properly into a web service...
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
3
by: tshad | last post by:
oThumbnail.Save is giving me an error: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. theFileName = New FileInfo(strFileName) fileOut =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.