Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'easy question about stringjoin' topicStudent Support Forum > General > Archives > "easy question about stringjoin"

Next Comment >Help | Reply To Topic
Author Comment/Response
SpinoWeb
04/27/02 3:09pm

I want this OutPut:

text1.dat
text2.dat
text3.dat

But my script is incorrect :(



This is my .nb file whit errors:

(*~~~~~~~~~~~~~~~~~~~~~~~~~~~*)

Off[General::"spell"];
Off[General::"spell1"];

For[r = 1, r <= 3, {
file = "text" <> r <> ".dat"
Print[file]
}, r++];

StringJoin::"string": "String expected at position \!\(2\) in \!\(\"Ug\" <> 2 \
<> \".dat\"\)."

file

StringJoin::"string": "String expected at position \!\(2\) in \!\(\"Ug\" <> 3 \
<> \".dat\"\)."

Null "Ug" <> 2 <> ".dat"

StringJoin::"string": "String expected at position \!\(2\) in \!\(\"Ug\" <> 4 \
<> \".dat\"\)."

General::"stop": "Further output of \!\(StringJoin :: \"string\"\) will be \
suppressed during this calculation."

Null "Ug" <> 3 <> ".dat"

(*~~~~~~~~~~~~~~~~~~~~~~~~~~~*)

URL: ,

Subject (listing for 'easy question about stringjoin')
Author Date Posted
easy question about stringjoin SpinoWeb 04/27/02 3:09pm
Re: easy question about stringjoin Henry Lamb 04/30/02 01:18am
Next Comment >Help | Reply To Topic