import file ?

import file ? - Messages

#1 Posted: 6/17/2021 12:16:00 PM
mnorena

mnorena

0 likes in 13 posts.

Group: User

is it possible to import a file in txt to the smath and organize it by columns and rows???
#2 Posted: 6/17/2021 1:49:55 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

is it possible to import a file in txt to the smath and organize it by columns and rows???


If you mean a comma separated file (csv), yes it is possible with importData().

2021-06-17_19-42.png
#3 Posted: 6/17/2021 3:39:09 PM
mnorena

mnorena

0 likes in 13 posts.

Group: User

I allow your instrruccions, i dont know if i am doing ok, the name of the file is "ppp" and it shows me in the smath studio thats it is not reconized.

smath.PNG
#4 Posted: 6/17/2021 3:49:26 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

If you could provide your file, it would be easier to check and input correct delimiters.
If you don't want to, just put a couple of lines. It can help to determine the function values.

Regards
#5 Posted: 6/17/2021 4:18:48 PM
mnorena

mnorena

0 likes in 13 posts.

Group: User

this it is the file, thanks for your help


ppp.txt (168 KiB) downloaded 54 time(s).
#6 Posted: 6/17/2021 4:27:20 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

this it is the file, thanks for your help


ppp.txt (168 KiB) downloaded 54 time(s).


You should write "ppp.txt" where you indicate your file.
You also just have to delete the first line from your data file.
It creates conflict between your function and data.
Data it provides don't match pattern of function.
So in result data can't be read.
Check below.

Show Spoiler


PS: martin is also right about getting partial data down below.
#7 Posted: 6/17/2021 5:12:18 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

You can access differently formatted sections by reading them separately.

import.png
import.sm (4 KiB) downloaded 49 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts