open « pointer « 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 » pointer » open 

1. Opening a file in C through a proccess    stackoverflow.com

I am trying to create a a program that does the following actions:

  1. Open a file and read one line.
  2. Open another file and read another line.
  3. Compare the two lines and print a ...

2. pointer to an open random-access file    cboard.cprogramming.com

3. Pointers not opening file    cboard.cprogramming.com

I'm trying to create a program that would first read a list from a data file containing names of people and their sales and then calculate the amount of commission each person makes. I'm trying to get the program to print the information on the screen and then print the same info on a separate data file but currently the gcc ...

4. problems with opening files and pointers...    cboard.cprogramming.com

#include #include #include char incluir[]={'#','i','n','c','l','u','i','r',' ','\"'}; char definir[]={'#','d','e','f','i','n','i','r',' '}; char esquecer[]={'#','e','s','q','u','e','c','e','r',' '}; void fazincluir(linha){ int i=9; int j=0; int caracteracopiar; char nomedofile[1024]; while (&linha[i] != '\"'){ nomedofile[j]=linha [i];} nomedofile[j]='\0'; fopen(nomedofile, "r"); while((caracteracopiar=fgetc(atoi(nomedofile))) != EOF) fputc(caracteracopiar, ficheiroderesultado); } void analisa(FILE* ficheiro){ char* linha=(char*) malloc(sizeof(char)*1024); while((fgets(linha, pre)) != EOF){ if ((strncmp(incluir, linha, 9)) > 0) fazincluir(linha); else if ((strncmp(esquecer, linha, ...

5. Pointer problem in opening a file    forums.devshed.com

I am getting an error for some reason in my complier refering to this line writefile (FILE *fPtr2, int *printArray); The program opens a file, allocates memory, adds to an array and is supposed to return the code in reverse to write to another file. Please can you help me the whole code is attached to see where i'm going wrong. ...

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.