Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 1st, 2005, 8:31 PM   #1
sam
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 sam is on a distinguished road
I need help!!

I have an assignment to do in my intro to c programming class, but I don't know where to start. The first thing I need to do is open a file containing text, then I need to put the words that are in the text into an array. Does anyone have any hints for me?
sam is offline   Reply With Quote
Old Mar 1st, 2005, 8:33 PM   #2
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
A very righteous C tutorial.

Also: fscanf(). There's probably a much safer way to read files (to avoid Buffer Overflows in your program) but that's the only way I can think of because I don't do a whole lot of file I/O in C.
Mad_guy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC