| | |
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 * append array arrays bash binarysearch changingto char character cm copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createprocess() database dynamic execv feet fgets file floatingpointvalidation fork forloop framework function getlogicaldrivestrin givemetehcodez global grade gtkwinlinux hacking histogram homework i/o ide include infiniteloop initialization input interest intmain() iso kernel keyboard kilometer license linked linkedlist linux list lists looping loopinsideloop. lowest matrix meter microsoft mqqueue oddnumber odf open openwebfoundation overwrite pdf pointer pointers posix power process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing segmentationfault sequential single socket socketprogramming standard strchr string suggestions test testing threads turboc unix urboc user whythiscodecausesegmentationfault win32api windowsapi






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