hey guys, i was wondering if you could help me with my problem!
i made a program that uses 3 arguments as inline commands:
argv[0] is the name of the program)
argv [1] is the name of the first file
argv[2] is the name of the second file
The purpose of the program is to write an inline command with these 3 arguments in the form <program_name.exe file1.txt file2.txt> and the program copies the content of file1.txt in file2.txt and then deletes file1.txt (similar to cut command). The thing is that everytime a different name is used and i cant use remove command that takes the destination of the file as an argument. what do you suggest?thanks for your time!
i hope i was clear.
MysticMan3000 0 Newbie Poster
Tight_Coder_Ex 17 Posting Whiz in Training
MysticMan3000 0 Newbie Poster
vinitmittal2008 37 Junior Poster
vinitmittal2008 37 Junior Poster
MysticMan3000 0 Newbie Poster
vinitmittal2008 37 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.