how to write elements of array from a text file?

From: Mac (lojurk_at_wp.pl)
Date: 10/31/03


Date: 31 Oct 2003 07:24:43 -0800

I would be grateful if someone could send me source code of
a program that would write elements of 2D array from a text file (or .jar)
so I could process that array inside the program.

array such as: array = {{1, 2, 3, 4, 5},
                        {2, 3, 4, 5, 6}} contained in text file

So I would be able to show elements of this array with loop for.
In advance, thank you.



Relevant Pages

  • Re: functional programming
    ... But if you're going to tromp over the original array straightaway ... Second-guessing such optimizations and hard-coding them in your source code can make the code more difficult to reason about and deal with in general, because it can put all of the properties I listed at risk. ... Mutation can be encapsulated locally in a controlled way that doesn't lead to problems, for example -- however, 'every' above is not encapsulated in that way. ...
    (comp.lang.scheme)
  • Why is [reply] missing in CLF ?
    ... WIKI has it wrong. ... They are complicating Forth, ... into a spcific user ARRAY .... ... Now source code has only important stuff. ...
    (comp.lang.forth)
  • Re: Learn to Program, by Chris Pine
    ... Maybe you should include the full source code. ... The error message says that the right side of an addition is nil. ... What I also think is strange is that "world" seems to be a two dimensional array when you first mention it, but later on you pass it to continent size along with two parameters. ... Even though you wouldn't need the braces as it all of the conditionals need to be true for the whole expression to become true. ...
    (comp.lang.ruby)
  • Re: how to write elements of array from a text file?
    ... > I would be grateful if someone could send me source code of ... > a program that would write elements of 2D array from a text ... There are many tutorials on stream usage ...
    (comp.lang.java.help)
  • Re: two dimesional array
    ... I was able to look at the source code, and we changed it on the component end. ... I have a component that returns a 2 dimensional array of strings. ... I've even tried to declare a string array with know dimensions but no luck. ...
    (microsoft.public.dotnet.languages.csharp)