schloemilch

20 Reputation

One Badge

11 years, 29 days

MaplePrimes Activity


These are replies submitted by schloemilch

@Carl Love 

Hi Carl 

Thank you for your reply and help. The WrapText command worked. 

Regards,

Oskar

@acer 

Hi, good evening

Thank you very much for your reply. As you suggested I was missing a forward slash before Users. Using 'currentdir()' I did find those files created by 'fopen()' and some had really odd long names...:)

 

Thanks

 

Oskar

@Mac Dude 

 

Hey, good evening

Thank you very much. Your suggestion solved my problems...:) As it turned out, fopen did create those files in the current directory of the worksheet I was working on. Some were created deeply tugged away. With current() I did eventually find them. 

 

again thank you

 

Oskar

@mehdi jafari 

 

Hi

Thanks again for helping.

It turns out, that fopen() did in fact create the files. Like Mac Dude 380 suggested, it created them in the current directory of the worksheet I was working on. Using currentdir() I was then able to find those files. 

Oskar

 

@mehdi jafari 

Hi 

Thank you very much for your help.

So I created the example.txt and maple worksheet, saving both into the same folder on my desktop as instructed. Here the code which I copied from you into the maple worksheet:

> restart:
> L := ([seq])(i^2, i = 1 .. 20);
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225,

256, 289, 324, 361, 400]
> for i to 20 do

FileTools[Text][WriteFloat]("example.txt", L[i]);

writeline("example.txt", " ")

od:

FileTools[Text][Close]("example.txt"):

 

It did not work.

Oddly enough, when I downloaded your example.txt and maple worksheet into a folder in the same directory, it worked. 

So I carefully followed your instructions again in order to see if I made a mistake somewhere. But it does not work.

@Carl Love 

Thank you for your reply.

I did try both the options with the forward slash and the double backslashes. 

 

Page 1 of 1