User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 455,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 474 | Replies: 1
Reply
Join Date: Aug 2007
Posts: 9
Reputation: gretschduojet1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gretschduojet1 gretschduojet1 is offline Offline
Newbie Poster

Trouble reading and writing to a file

  #1  
Nov 25th, 2007
Hello everyone, I haven't been stuck in quite some time, but I'm stuck. I have to read a list of names from a file, then sort them, then write the sorted names to a second file. I've been going to forum and reading articles on line but I don't understand how to read or write from a file. Do I make a text file in notepad first? As I've said in my previous posts I'm not looking for someone to do my work for me, but I'm looking for someone to guide me in the right direction. Thanks for the help in advance.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Posts: 2,779
Reputation: WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold WaltP is a splendid one to behold 
Rep Power: 15
Solved Threads: 229
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Maven

Re: Trouble reading and writing to a file

  #2  
Nov 26th, 2007
However you want to make the file you want to read. Notepad is fine for text files. You can also write a program that accepts info from the user and writes it to a file for another program to read.
Age is unimportant -- except in cheese
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC