Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'how to import data into a list' topicStudent Support Forum > General > "how to import data into a list"

Next Comment >Help | Reply To Topic
Author Comment/Response
Manali yavatkar
09/10/05 2:41pm

Hi
> >
> >I am a middle schooler and new to Mathematica. I am trying to write a
> program which will read up to 100 integers from keyboard or a file. Can
> someone point me to sample program or information on how to do that?
> >
> >I know how to write a loop, etc, where I am stuck is how to read from the
> keyboard what I type in as integer inputs
> >

I have tried the following lines in a .nb file with a data file that has spaceseparated 10 integers on a line

.nb file has:

myList = {}
myList = Import("data1.txt", "Integer")


Thanks
Manali

URL: ,

Subject (listing for 'how to import data into a list')
Author Date Posted
how to import data into a list Manali yavat... 09/10/05 2:41pm
Re: how to import data into a list yehuda ben-s... 09/12/05 10:00am
Next Comment >Help | Reply To Topic