friends how to use the scanf in the objective c when i am compiling it is working开发者_StackOverflow中文版 nicely
I have a file which is similar to /etc/passwd (semi-colon separated values), and need to extract all three values per line into variables then compare them to what have been given into the program. He
I have the following program: int main(int argc, char *argv[]) { int a, b; char c1, c2; printf("Enter something: ");
I want to read floats (and ints afterwards) from a line I\'m getting out of a file. When I\'m debugging it, I can see it\'s getting the line out of the file no problem, but when I try to sscanf it, I\
I have a log file with the following format: INFO 2011-03-09 10:26:15,270 [user] message I want to parse the log file using PHP:
I have couple of questions. I have a text file which contains these information x0,x1,y0,y1 142,310,0,959
I\'m trying to read a text file built with the following format in every line: char*,char*,int i.e.: aaaaa,dfdsd,23
Is a NULL pointer allowed as the string to store result in in a call to sscanf? I don\'t find anything about it in any documentation but it seems to be working fine. Same thing with scanf.
I\'m reading from a text file which contains: Mary 55334422 24.90 56.6 45.68 and am reading it in: ....char name[20]; int num; double worked; double rate; double total;....
Hey all, I\'m writing a C program, and I want to have an array of structs malloc\'d up and filled with data from a file. Here\'s my typedef for the struct: