473,795 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[C++] Creating File System Constole App

3 New Member
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 2280
weaknessforcats
9,208 Recognized Expert Moderator Expert
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
XDeveloper
3 New Member
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
XDeveloper
3 New Member
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
3998
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 ID=MyID
1
3334
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 on filling the dataset. I have also tried creating it from the XML schema but I am having problems manipulating it. If someone could point me to some resources, that would be great as I can't find anything.
15
6751
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 javascript or vbscript it works. I will appreciate any help. I do the following (C#):
3
2997
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 ldb for the life of the application even after calling oldebconnection.close and gc.collect. Any ideas?
2
11812
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 application, DVD collection starter kit. How can I do? Any suggest? Thanks in advance. VAL
3
4903
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 to find out where the .DLL is. As is, this code writes a log file ok, but the log file ends up buried directory deep inside the .Net Framework directories. Anyone know how to find the path of a web service .DLL so I can fix this code to write to...
7
2322
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, the other in which I close the FileStream afterwards, although both return the same error. Here are the two versions of the code and the errors they each return (NOTE: I rebooted immediately before running each of these versions so that I knew they...
15
2837
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. Everything is the default settings I believe. IIS is running under Local System. In IIS the DefaultAppPool is running under Network Service. Annonymous access uses the account IUSR_JASMINE (machine name is Jasmine).
3
1678
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 = fileIn.Substring(0,fileIn.LastIndexOf(".")) & session("User").CompanyID & fileIn.Substring(fileIn.LastIndexOf(".")) pathFileOut = Server.MapPath("\Uploads") & "\" & fileIn.Substring(0,fileIn.LastIndexOf(".")) & "Temp" &
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.