Question about Computers & Internet

1 Answer

File handling c++ program to append to the content of the file

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Novelist:

    An expert who has written 50 answers of more than 400 characters.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

  • Expert
  • 110 Answers

Use copy,  (or cp in linux),  it's a C program,  if you want you can find the source code if you are resourceful.  see below.  If you want a c++ program source code, take the source you found and do "rename copy.c copy.cpp" ;~).  It is silly to use an OO language to do a trivial utility.
see usage below:

C:\Users\ajm>ver > file1
C:\Users\ajm>ver > file2

C:\Users\ajm>copy file1+file2 file3 file1 file2         1 file(s) copied.
C:\Users\ajm> C:\Users\ajm>dir file*  Volume in drive C is SQ004740V04  Volume Serial Number is 72CF-0846
 Directory of C:\Users\ajm
11/06/2008  09:51 AM                40 file1 11/06/2008  09:51 AM                40 file2 11/06/2008  09:51 AM                81 file3                3 File(s)            161 bytes                0 Dir(s)  79,747,624,960 bytes free

Posted on Nov 06, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Installed software but then lost all contents


If you mean that you installed your OS and erased all your files, then they may be gone for good. Recuva is a great program for restoring lost files, may be worth trying (it's free). But use your computer as little as possible before attempting this, any hard disk activity may be overwriting data you want to restore. The safest way to use this program is to install it on another computer, hook up the hard drive from the affected machine and scan it for recoverable files.

Aug 21, 2011 | Computers & Internet

1 Answer

I have save an excel file on desktop. When I clicked to open it, it did not show contents and a message was poped up saying that there is a problem of sending command to the program.


Try make a copy of the file and open it in another computer. Then, save the file as a old Excel file.
Maybe... but other possibility is that the file is corrupted :-(

May 01, 2011 | Computers & Internet

2 Answers

My computor is running slow and freezing up.


Try freeing as much memory as possible to correct the problem.

turn off any programs running in the background by checking the ICONS in the lower right side of the screen near the clock area. use your mouse and right click on any pictures shown there and choose "exit" or "close".

then run disk clean. If you are using win xp, go to start, programs, accessories and then system tools. Slide over to clean desk and click on it.

It will ask you if you want to clean "C" drive - this is fine!

Check all the boxes when the window asks which files to handle. Use the arrow key and make sure you get them all. Then click ok.

When its finished running then run disk defrag.

go to start, programs, accessories system tools and then disk defrag. you want to defrag "c" drive and click the degrag button at the bottom to start it.

this may take a while to complete. when finished, reboot the pc. Then go to windows update and run a scan to update files. Install the updates, restart one more time and this should correct the problem.

Mar 25, 2011 | Dell Computers & Internet

1 Answer

We have a script which generates CSV file from DOS based paradox 4.0 table. Please let me know if there a way to get the report with table column description as the first row with the report generation.


What scripting language are you using?

In general, I'd say it wouldn't be hard, generically, you could parse the query and/or results to get the description.

Alternately, if your reports always use the same fields in the same order, simply write the headers to a file then append the results of your query (append instead of write).

Aug 29, 2010 | Computers & Internet

1 Answer

Just signed up for free tral through aol and Im unable to down load softwear program.it indicates "the contents of this file cannot be unpacked".i spoke with an aol rep.and they directed me to this site...


The contents of this file cannot be unpacked. This means that the executable you are attempting to run has been corrupted.
  1. Obtain another copy of the file, verify its integrity, and try again.
  2. Another option is to request a CD from AOL, which is free.
  3. The only other option I can think of is to download the AOL setup from the Alternate AOL Download site here: http://daol.aol.com/software/95-alt/?icid=roadie_95landing
  4. You could also try downloading this file from another computer with a good internet connection.

Jul 05, 2010 | Computers & Internet

2 Answers

Using Entourage 2004 (11.4.0) on Mac OSX 10.3.9. When I send an email, no problem, but when I attach a file, the attachment isn't attached at the other end, and the content of the email all runs on with...


You message seems to be incomplete here too. ut no worries. If you have finally decided to get rid of your existing email and move to different one than i would suggest you to use Google Thunderbird.
It is open source for everyone and very easy to configure. Also if has both options for Windows and Mac.

You can ask me if you have any question(s) or confusion(s) while downloading and installing the thunderbird.

Thanks
Jimmy

May 23, 2010 | Computers & Internet

1 Answer

Where i can get software for C Programing language and what is the software name...........?


STEP 1 : Download the Borland Compiler
https://downloads.embarcadero.com/item/24778
STEP2 : Run the setup program
By default, it should install everything to C:\Borland\BCC55

STEP 3 : Add the /bin directory to the system PATH

>C:\Borland\BCC55\bin\bcc32 OR >c32

After the setup program is run (step 2), a whole bunch of executable programs are placed in a new directory : C:\Borland\BCC55\Bin. This step makes it possible for the Operating System (Windows) to find these new executables by name. If you don't do this, then you will need to specify the full path to bcc32 every time you use it.

To do this on Windows XP
Bring up the Environmental Variables :

•Right Click "My Computer" ( Depending on how your system is set-up, "My Computer" is either on your Desktop or in your Start Menu )
•Select "Properties"
•Activate the "Advanced" Tab
•Click the "Environmental Variables" Button
Append ";C:\Borland\BCC44\bin" to the PATH variable (figure 3-2)

•Select the PATH variable under User Variables
Note: The PATH variable may appear under both System Variables and User Variables. This How-To changes the User Variable.
•Click the EDIT button below the list
•In the "Edit User Variable" box that pops up, move the cursor to the end of the Variable Value field
•Add a semi-colon ";" to the end of the current value
Note: If the value is empty, then you do not need to add a semi-colon
•Add the path "C:\Borland\BCC55\bin" after the semi-colon
•"OK" your way out of the dialogs

STEP 4 : Set up some configuration files
you should create a configuration file for the bcc32 program that tells it where to find its libraries and include files.
•The file should be named bcc32.cfg
•It should be placed in the same bin directory where bcc32.exe is located
(C:\Borland\BCC55\Bin)
•The contents of the file are the command line options for bcc32 stating the location of include files and libraries:
-I"C:\Borland\BCC55\Include"
-L"C:\Borland\BCC55\Lib"
Regards,

Soul_srch007

Dec 06, 2009 | Microsoft Windows XP Professional

2 Answers

Hi tryed to download javameantime, error code 25099 connot unzipp core files, how do i corect the problem,


WORKAROUND

Step 1 : Completely delete content of the following directory: C:\Program Files\Java\jre6\ (or alternate directory if you chose a non-default install location)

Step 2 : If Step 1 has permission issues due to files being locked or in use, restart your system

Step 3 : Now, completely delete content of the following directory: C:\Program Files\Java\jre6\

Step 4 : Download and install Java.
  1. Go to Java.com
  2. Click on the Free Java Download button, and start the installation process.

Sep 17, 2009 | Microsoft Windows XP Professional With...

1 Answer

How to make a program


Hi Friend,

This is a python command solution.you can download the python IDE from this link and get down to buisiness.

www.python.org/download

And here is my example.....

> >>> L=[]
> >>> L.append('10')
> >>> L.append('15')
> >>> L.append('20')
> >>> len(L)
> 3
> >>> print L
> ['10', '15', '20']
>
> is there a way to sum up all the numbers in a list? the number of
> objects in the list is vary, around 50 to 60. all objects are 1 to 3
> digit positive numbers.
>
> all i can think of is check the length of the list (in the above
> example, 3), then L[0]+L[1]+L[2] .....

Good Luck!!!

Jun 23, 2009 | Apple Mac OS X 10.4

1 Answer

How to use cmd ?


to use the command prompt, press the "start" and "R" keys on the keyboard.
On the small, "Run" screen, type cmd.
click ok.

type help in the command prompt. This should print a list of commands that you can use with it.
This is what it puts on-screen:
For more information on a specific command, type HELP command-name
ASSOC Displays or modifies file extension associations.
AT Schedules commands and programs to run on a computer.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS. You cannot convert the
current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKCOMP Compares the contents of two floppy disks.
DISKCOPY Copies the contents of one floppy disk to another.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences
between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a
batch program.
GRAFTABL Enables Windows to display an extended character set in graphics
mode.
HELP Provides Help information for Windows commands.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SHIFT Shifts the position of replaceable parameters in batch files.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written
correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.

this window is used only when the desktop cannot be accessed.
For a user-friendly interface (easier to use), use My computer to do common tasks.

Aug 25, 2008 | Microsoft Windows Vista Home Premium with...

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

116 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

98868 Answers

David Payne
David Payne

Level 3 Expert

14086 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...