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

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/.

Related

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.

Can I compile a .c file to .exe file without a compiler? [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 years ago.
Improve this question
I have recently downloaded an application file in the .c format. I want to convert it to an exe file so that i can run it. I also tried to download a compiler but I was unsuccessful. Can anyone help?
you could use an online complier such as this website
Can I compile a .c file to .exe file without a compiler?
No

Read and rename a file from a folder in C [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
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.

Reading binary (MACH-O) file load commands [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
How does otool and similar tools read load commands? I could not find any open source tools to figure this out (even though otool is partially open source). How does it parse the binary file? Where does it start?
Thanks
I would expect that the otool command would open the file and parse the header of the binary according to the OSX ABI Mach-O File Format

How to find built directory string in C exec.file? [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 8 years ago.
Improve this question
while reading docs for FreeBSD 7.3 gdb, I saw a mention of built directory info stored in binary files. How is it stored, and how could it be retrieved?
If a binary is built with debug info, then it will contain debug symbol information that contains full path names, so when you debug, your debugger can find source files and correlate source code with execution. Open the binary file in any hex editor and you will be able to see the path strings

Resources