By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,813 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,813 IT Pros & Developers. It's quick & easy.

[C++] Creating File System Constole App

P: 3
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
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
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

P: 3
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

P: 3
People Help!!! Deadline is sooon!
Dec 10 '07 #4

Post your reply

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