473,503 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Managment

mugees4u
1 New Member
Sir I want to accept Employee Salary & it's compansation from keyboard and save it into database & display top 10 employees record on the basis of salary using C language with the help of Filemangment
Please provide source code!!!
Apr 30 '12 #1
1 1448
weaknessforcats
9,208 Recognized Expert Moderator Expert
Do this in logical pieces.

First, write a function that has arguments for your employee data and this function puts the data into an array.

Make the array very simple, like no more than 3 elements.

Second write a function that has arguments for your employee data and this function will display the data.

Third, write your main() where the user enters employee data. After ine emoloyee is entered, call your first function t put the data into the array. When all the employee data is entered, enter a loop where yu cal your second function to display the data.

Make sure this much works.

Then replace the inside of your first function to use a disc file instead of an array. Change your main() to open the file at the beginning and close it at the end.

Unless you write the code yourself you will never learn how to do it. I can help you if you get stuck but I cannot just do your work for you.
May 1 '12 #2

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

Similar topics

2
13808
by: Jake | last post by:
Hi group, I am trying to build a page that allows uploading My ISP only supports Smartupload I am testing on a small hubbed local network, with PWS Any help is appreciated....
4
3362
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a...
0
339
by: falcon | last post by:
I know I came after the battle. And I have just another sight on context managment. Simple Context Managment may look in Python 2.4.1 like this: Synhronized example: def...
2
1915
by: Jason Davis | last post by:
Hi there, Is anyone familier with an access managment system for orders? Something simple like products, alphabetic list of clients and archive of ordered products. Thanks! Jas.
4
14757
by: Jason Jacob | last post by:
To all, I've tried to use System.IO.File.Move (srcFile, desFile); but there is an exception similar to this : The process can't access desFile because it's being used by another process I...
6
1396
by: Kevin Frevert | last post by:
In the process of learning VS2005/C# (having a background in Borland Delphi 2 through 2005) I came across an interesting feature of Visual Studio's file management. At first, it appeared there...
17
15972
by: cnwy | last post by:
Hi, I have a long string in char * and want to convert it to a File * fp. Is there any best way to do it without using tmpfile? Thanks. wy.
0
1268
by: shining.sea | last post by:
This might be interesting for web master who have lots of digital and want an easy way to manage them http://digg.com/software/AJAX_Based_File_Managment_Web_Application This company, called...
12
10950
by: Darrel | last post by:
I'm still having a hell of a time figuring out this whole SQL Express set up. I finally discovered why I couldn't run the aspnet_regsql...my local sql server wasn't running. I turned that on,...
1
1492
by: cowboyrocks2009 | last post by:
Hi, I need to develop the functions below for a server in Java. Is there any package or class that I can use ? I just had a look at one namely... com.mindbright.net.ftp. Can you guide me about...
0
7204
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
7342
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...
1
6998
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...
1
5018
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...
0
4680
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...
0
3171
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...
0
1516
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 ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.