Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-11-2008, 11:33 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Unhappy How to store text(strings) in a 2D character array reading from a text file(C++)

Hello everyone...
i m making a project in my college software competition.
i have to read text(like an email) from a text file and i have to store all the characters in a 2D array...
can u help me out??
i tried to do it... the program is working... but it shows some of the characters allright... but many weird characters in place of the correct characters...
I wil b grateful if u can help me quickly....
Old 02-11-2008, 12:15 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, showing us the broken code might help us fix it. Make sure you use code tags.

Also, since it is an assignment, don't expect anyone to just give you the answer. You're not learning anything if we just tell you the answer.
Old 02-11-2008, 12:45 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 02-14-2008, 08:08 AM   #4
LQ Newbie
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
its not an assignment... its a competition... i was able to fix it however... thnx for ur help....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
View Chinese character in text file using vi ufmale Red Hat 1 02-17-2008 02:05 PM
C++ Text File into String Array p2pfire Programming 2 09-18-2007 04:59 AM
reading text from a file mrobertson Programming 16 06-28-2005 01:39 PM
Using c++ to write to a text file. Im having problem with strings swatward Programming 4 02-03-2005 10:17 PM
C++ reading from text file query lrt2003 Programming 5 05-15-2004 05:25 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration