fread « 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 » fread 

1. Which is faster, fgets() or fread()    cboard.cprogramming.com

Conceptually, fgets() reads a line at a time - but that's not the whole story. The drive (any drive), will have a buffer, and THAT is the amount of data that will be read from the drive, with every read - buffer #1. Buffer #2 will be one that the OS will have set up, for itself, and may vary, from ...

2. fread and fgets for socket programming    cboard.cprogramming.com

> This is more convenient than read-write since it allows buffering and allows trasnferring any type of data. This is utter nonsense since read/write also offer these things as well. The only thing fgets() offers is stopping at newlines, and that's easy enough to do yourself. Besides, fgets() can't deal with binary data very well (is that \0 just the end ...

3. Fread of Fgets?    forums.devshed.com

I am trying to read in from a text file using fgets and then use strtok on that line. The only problem is that I do not know the actual length of that line. It will be a string (let's say 200 characters long) and an integer. But this integer could be any size that would fit in storage type int. ...

4. Diff between fread() and fgets()    daniweb.com

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.