| | |
Reading words from file
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2009
Posts: 106
Reputation:
Solved Threads: 5
Here you have a small example :
To better understand fscanf try viewing : http://irc.essex.ac.uk/www.iota-six....nf_fprintf.asp
C Syntax (Toggle Plain Text)
#include <stdio.h> main() { FILE *fp; fp = fopen("test.txt", "w"); fscanf(fp, "%s", buffer); printf("Read Buffer: %s\n", %buffer ); flcose(fp;); }
Last edited by jen140; Apr 19th, 2009 at 9:04 pm.
![]() |
Similar Threads
- Replace words in a file (Python)
- reading words into strings (C++)
- Reading .dat file data into an array (C#)
- open a file and divide its data in arrays (C)
- How to populate an array? from a FILE (C)
- A couple Qs (arrays, c++, and reading in text files) (C++)
- help reading from .txt file (C++)
- C++ File I/O (C++)
- Help with File Reading loop (C++)
- File parsing in 'C' (C)
Other Threads in the C Forum
- Previous Thread: Basic Prob in C
- Next Thread: You'd think I would know how to use strings by now, but...
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include incrementoperators infiniteloop initialization input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list lists locate looping lowest matrix meter microsoft number oddnumber opendocumentformat openwebfoundation overwrite owf pdf pointer posix power probleminc process program programming radix recursion recv recvblocked research reversing scripting segmentationfault sequential single socket socketprograming socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi






..Now ive just got to implement my palindrone function. Thanks for the help guys.