Re: Reading a small text file contents into an array

From: tom_usenet (tom_usenet_at_hotmail.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 13:58:21 +0100

On 28 Apr 2004 04:10:52 -0700, foxykav@hotmail.com (Foxy Kav) wrote:

>Uh .. thanxs for that, but im just a beginner and that makes
>absolutely no sence to me.

Which bits didn't you understand? Or none of it? If you didn't
understand any of it, you'll need to get a good C++ book before going
much further. Have you used ifstream before? vector? They are both
fairly fundamental in C++ (though neither exist in C - perhaps you are
learning from a C book?)

>Im trying to write alphanumeric charcter to a file, so char is the
>type of data i want to write to a file, and get from a file.

What have you got so far?

Tom

-- 
C++ FAQ: http://www.parashift.com/c++-faq-lite/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html


Relevant Pages

  • Re: RGVAC FAQ Revision: 1.3
    ... Mark, ... Its important to have some sence of direction in any ... newsgroup to atleast keep a general order. ... The FAQ has been around since 1995. ...
    (rec.games.video.arcade.collecting)
  • [PATCH 03/56] quota: Remove bogus optimization in check_idq() and check_bdq()
    ... Checks like <= 0 for an unsigned type do not make much sence. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Gravity, Curvature vs Force
    ... "Tom Roberts" wrote in message ... >> Tom is well aware that neither he, nor his FAQ ever bothered to consider ... > In that article you claim Miller's resolution was 0.01 fringe. ... Besides, even if his resolution is 0.1 fringe, his results ...
    (sci.physics)
  • Re: Gravity, Curvature vs Force
    ... "Tom Roberts" wrote in message ... >> Tom is well aware that neither he, nor his FAQ ever bothered to consider ... > In that article you claim Miller's resolution was 0.01 fringe. ... Besides, even if his resolution is 0.1 fringe, his results ...
    (sci.physics.relativity)
  • Re: puts with numbers
    ... Profetas wrote: ... but the book that I am learning from does not use it. ... There is no "void main". ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.lang.c)