open « linux « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » linux » open 

1. Detecting changes to an open file    stackoverflow.com

Suppose I have an open file. How can I detect when the file is changed by another program in the background. Some text editors can detect and update the open ...

2. How can I tell if a file is open elsewhere in C on Linux?    stackoverflow.com

How can I tell if a file is open in C? I think the more technical question would be how can I retrieve the number of references to a existing file ...

3. Open/close strategy for /proc pseudo-file    stackoverflow.com

I have written a C utility for Linux that checks the contents of /proc/net/dev once every second., I open the file using fopen("/proc/net/dev", "r") and then fclose() when I'm done. Since ...

4. Ignoring comment lines marked with "%" using open() in C on linux    stackoverflow.com

I am trying to read a file which has the first two lines marked with a "%" as the first character. I need to ignore these two lines, and then ...

5. open file dir problem    stackoverflow.com

I'm running an Linux OS and trying to open file in C compiler like this :

  file = fopen ("list.txt", "r");
but the file is not opend! and when i put the ...

6. How do I open a file in its default program - Linux    stackoverflow.com

How do I programmatically open a file in its default program in Linux (im using Ubuntu 10.10). For example, opening *.mp3 will open the file in Movie Player (or something else). Thank you ...

7. a file descriptor not getting reused even after close    stackoverflow.com

A portion of my code is as follows:

int fd_file;
....
while(condition)
{
   fd_file = open(path,O_RDONLY);
   if(fd_file == -1)
        perror("Error opening file");
   ...

8. Opening a file with the default viewer on Linux    stackoverflow.com

I am working at an OS independent file manager (mostly Windows and Linux), and I am wondering if there is a Linux way to open a file in its default viewer. ...

9. linux opening a program from within a C file    cboard.cprogramming.com

10. Opening a File for a Process (LINUX)    daniweb.com

Hi, I ve been given an assigenment in which I have to create a process, open a file and read it by that process, then that process the data to the another process (2nd process) through function pipe (), which capitalizes all the letters. The 2nd process then sends the capitalized data to 3rd process which opens a file for output ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.