I want to create a kind of agenda of championships and when a user logs in into my "database" he has to have access for visualising the championships details. These kind of details i keep in a file. How should my function look like ? I think I should try to use something like define myFile="Desktop/Program/Visualize.txt" and somehow in a function i should have something like execlp("cat", "cat", myFile, 0); Is there necessary using pipes or sockets? Thank you so much and please forgive my mistakes.
I want to create a function in UNIX C to display the content of a file
74 Views Asked by Roxana Mihăilă At
1
There are 1 best solutions below
Related Questions in EXEC
- Unexpected argument on sqlcmd command line
- How does Python's exec function work when sending an empty dictionary in the locals parameter?
- Executing sed from php script
- Parent process doesn't wait for the child process to terminate
- Reading and writing from pipe after execvp using dup2
- Many QPushButtons clicked connecting using exec()
- Dynamic Piping in C
- intercommunicating using stdin and stdout between forked C processes
- Can an imported module use modules already imported?
- Execute a comand for each file within a directory
- pyzmq doesn't receive messages when using exec
- Running exec() via PHP (Laravel) on IIS and Windows Server
- PHP exec/passthru/system produces different result than executing manually from command line, why?
- Start a bash terminal with C using execl / execv and add timeout
- How to get bash find exec to directly execute commands instead of using a temp file?
Related Questions in CAT
- Weirdness with output in Git Bash in Windows
- How to open a split zip archive with more than 99 parts?
- cat and curl large JSON value from gitlab ci
- SwiftUI How can I get the correct font size for CATextLayer
- exec: "cat": executable file not found in $PATH: unknown.'
- Display a blowfish encrypted file without vi(m)
- How to read an open file through a file descriptor from proc?
- Trying to categorize some columns and exclude others. Getting this error Cannot perform 'ror_' with a dtyped [object] array and scalar of type [bool]
- If I execute a task from terminal it works, but within a script it don't...Why?
- How can i use any bash command in bash function
- rewrite shell script so that cat does not evade the check
- How do I loop through files and combine them based on a species designation? - Bash
- multi-line json files to ndjson
- How to print ENV VAR name to file, NOT VALUE from linux cli
- How to subtitute the cat command in a bash file?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no need to go through system calls. Instead, use this function: