strtok « fgets « 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 » fgets » strtok 

1. Reading the file with comma delimiter using fgets() and strtok()    stackoverflow.com

I have a text file with three fields separated by comma. Example of the content of my text file: 12345, true programming newbie, BS ME To load the file into the program, ...

2. Confused parsing a CSV txt file... strtok, fgets, sscanf    cboard.cprogramming.com

Hi everyone. I'm working with a comma-delimited text file (in this example, it's abc.txt), with the following structure: Code: 299, 26, 10, 7, 45, 87.688493, 112.055298, 54697, 3362, 1992, 2569, 793, 81638, 3 299, 26, 10, 8, 0, 85.539068, 114.966376, 49899, 5755, 3751, 3014, 994, 89688, 5 299, 26, 10, 8, 15, 83.402953, 117.925606, 47183, 7941, 4041, 3164, 1084, 93264, 5 ...

3. fgets() and strtok()    cboard.cprogramming.com

Hi all, I'm trying to read a file, remove the comments (lines starting with a #) and store the values. I haven't done any C in a while, so please bear with me. I have read a bit from searching the forum and the FAQ, but can't seem to find the problem. I have decided to first read the file as ...

4. piglatin program with fgets, strtok, and strlen    daniweb.com

#include "stdio.h" #include "string.h" main() { char word[40], latin[40], temp[40], vowels[6] = "aeiou"; char *foundat, *i, *j; int where; printf("Enter a word\n"); gets(word); foundat = '\0'; i = vowels; for (i = vowels; *i, i++) { for (j = word; *j; j++) { if (*j == *i) { if(!foundat) foundat = j; else if (j < foundat) foundat = j; break; ...

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.