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:

3 Answers

What is a group of trees


Huh, ...?
i thought a 'group' of tree's, was a - FOREST!

Apr 14, 2015 | Computers & Internet

2 Answers

Saving appended files in Scandall 21 version 4.3.17


when you are saving the file make sure you are saving the file in the desired format ... the save as type option.

Jul 14, 2008 | Computers & Internet

Tip

Useful Notepad Trick !


This is real cool for people who use notepad to write down any info on a day to day basis.


Open a blank Notepad file

* Write .LOG as the first line of the file, press enter.

* Save the file and close it.

* Double-click the file to open it and notice that Notepad appends the current date and time to the end of the file and places the cursor on the line after.

* Type your notes and then save and close the file.

Each time you open the file, Notepad repeats the process, appending the time and date to the end of the file and placing the cursor below it.

.

on Dec 10, 2009 | Computers & Internet

1 Answer

How do you put project from web page back into Web Creator Pro


Dear Sue, it is quite easy. All WYSIWYG editors are equipped with identifying the files they can handle easily. You simply need to open any .HTML or .HTM file in Web Creator Pro. Press CTRL + O (on win) or CMD + O (on Mac). Once your file is opened you can edit it like you use to do before. Now, if you want to bring in everything that go to Manage Sites and open the folder in which your present site is residing and Web Creator 6 Pro Shall handle all.

Have any problem feel free to ask again.

Oct 07, 2012 | LMSOFT Web Creator Pro

1 Answer

How to add a picture in a field in Visual foxpro. I could do it earlier in Foxpro for Windows with the APPEND GENERAL command but now it only saves the filename and not the actual picture. Please help.


The type of the field should be GENERAL.
Try this command: APPEND GENERAL <fld_name> FROM <url_file>
For example: APPEND GENERAL my_gral_fld FROM 'c:\my_file.jpg'
Good luck!

Jan 11, 2011 | Microsoft Visual FoxPro Professional...

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

1 Answer

I want to map ip to hostname in visual basic 6.0 code can anyone know any library class which will resolve the DNS names in VB code pls send me mail as soon as possible


This is handled by the "hosts" file on a machine. That file lives in the folder: C:\Windows\System32\drivers\etc

This file (named "hosts") is there for this purpose. You can modify it as you would any text file using VB6. Just be sure to maintin the file's contents format.

Apr 15, 2009 | Microsoft Mlf Visual Studio Enterprise...

1 Answer

Using adobe acrobat professional - copy a pdf picture and paste into a pdf.


You can't just do it. Acrobat is not a document creation program.
You can either convert the picture to a PDF file and then append or insert that file in an existing PDF or you can use other program, such as an word processor to create a page in which you include the image and then convert to PDF and append or insert that page in an existing PDF

Dec 10, 2008 | Adobe Acrobat 7.0 Professional

1 Answer

Create access mdb file by vfp code


Try this

#define dbLogical 1
#define dbNumber 2
#define dbInteger 3
#define dbLongInteger 4
#define dbCurrency 5
#define dbSingle 6
#define dbDouble 7
#define dbDateTime 8
#define dbBinary 9
#define dbText 10
#define dbOLEObject 11
#define dbMemo 12
#define dbReplication 15
#define dbDecimal 16
if file("C:\accesstest.mdb")
delete file c:\accesstest.mdb
endif
public oAccess
oAccess = createobject("Access.application")
oAccess.visible= .t.
newMDB = oAccess.NewCurrentDatabase("C:\accesstest")
newtable = oAccess.CurrentDb.CreateTableDef('testtable')
with newtable
.fields.append(.CreateField("Field1", dbLogical))
.fields.append(.CreateField("Field2", dbNumber))
.fields.append(.CreateField("Field3", dbInteger))
endwith
oAccess.CurrentDb.TableDefs.append( newtable)
dbc2Convert = "\\tpdfiles\data\dfreeman\tip\data\rta\rta"
open database (dbc2convert)

dbgetprop(rta,"table",)

After it runs you will need to close the MDB and reopen it.

Oct 15, 2008 | Microsoft Computers & Internet

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

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

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

Answer questions

Manuals & User Guides

Loading...