cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
lala
Level VII

Save the following as txt with JMP?

How can save txt files without excess "

2024-02-27_20-28-53.png

#title=""
#tooltip="[",2052
#icon="I:\ABC\[.ico"

Thanks!

2024-02-27_20-31-51.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Save the following as txt with JMP?

You could get the values into a list, convert it to a string and then save that

Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	Compress File When Saved(1),
	New Column("Col",
		Character,
		"Nominal",
		Set Values({"#title=\!"\!"", "#tooltip=\!"[\!",2052", "#icon=\!"I:\ABC\!\[.ico\!""})
	)
);

vals = dt[0, 1];
str = Concat Items(vals, "\!N");
Save Text File("$TEMP/test.txt", str);

wait(0);
Web("$TEMP/test.txt");
-Jarmo

View solution in original post

2 REPLIES 2
lala
Level VII

回复: Save the following as txt with JMP?

  • This result is incorrect.

jthi
Super User

Re: Save the following as txt with JMP?

You could get the values into a list, convert it to a string and then save that

Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	Compress File When Saved(1),
	New Column("Col",
		Character,
		"Nominal",
		Set Values({"#title=\!"\!"", "#tooltip=\!"[\!",2052", "#icon=\!"I:\ABC\!\[.ico\!""})
	)
);

vals = dt[0, 1];
str = Concat Items(vals, "\!N");
Save Text File("$TEMP/test.txt", str);

wait(0);
Web("$TEMP/test.txt");
-Jarmo