Read and rename a file from a folder in C [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to make a program that reads the name of a (.mp3) file from a folder and then re-name it. I want to know how to do so.
Please give me an example on how to read a (.mp3) file name and save it, and also point to me things that I should know to make this program.
I'm on windows and using VS2013.

You might like to use the rename() function.
To scan a directory you can use a combination of FindFirstFile() and FindNextFile() calls.

Related

I have a custom library in C, where should I put the files and do i have to specify an extra flag in vs code? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
my school decided to use their own custom library in their computers and they don't give tutorials to install it, so I would like some help to properly compile on my own computer. file with custom library inside
I tried putting the folders in some places but didn't expect any good results

sequences for writing embedded drivers [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm really confused when I'm writing a driver? just need to know which file should I write first header file, or the configuration file otherwise the code file. just for example keypad driver using C. if there any resources to understand more these steps for writing driver I will be very thankful
Be it a driver development or application development,
Very first step is be clear with requirement,
Then have a proper design and then go for coding.
Note that coding without design is a disaster.
Which file to start with is your question?
If you are so much confused just start with code file.
Keep entire code in that file.
Later on you can re arrange your code to different files like header file , Config file , code file etc...

Batch File SIP ALG test [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
The below line has a program that runs like a batch file.
I'm needing to create something similar that can run as just a batch file to
test for SIP or ALG.
https://kb.iplogin.ca/hc/en-us/articles/360003299092-Prepare-Your-Network-for-Phones-line-test-ports-and-protocols-
I work at for a Telecommunications company and it would be a great tool for us to use. - Many thanks
There are plenty of such tools exists. For example http://sipp.sourceforge.net/
No point write just enother tool.
Just create scenario for sipp and check out result.

Reading .log file using C language in Linux [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have some information in a .log file. Is there any way to read a .log file in C language and convert it to .txt file? Are there any include files or API's I can use?
Most of the time a log file is just a formatted text file, so there is no need to convert.
Just use the rename() function from stdio.h. Here a reference: http://www.cplusplus.com/reference/cstdio/rename/.

What are configuration files? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What are configuration files? What are their use in c programs?
Additional question: What does it mean to have an error which states "Cannot open configuration file"?
A configuration file could be any file which the program uses to persistently store options, state, or data between executions. The concept is not specific to C and is probably universal to most programming languages. It is impossible, without knowing exactly what program you are dealing with, to figure out what they are, where they would be stored, or why the program wouldn't be able to open it.

Resources