View Full Version : txt files & xpresso
georgedrakakis 04-14-2007, 07:37 PM hi all,
can i import a txt file into an xpresso expression? (coffee node ?)
the txt file has 5 colums of text (code, name, rgb values)
and i want to extract each column of text.
(i think it's called "array" in visual basic).
i am working on a ral2rbg colour converter
and that would save me a lot of typing.
|
|
FrankBerg
04-15-2007, 11:20 AM
Hi George,
Try this (http://xpresso24.com/index.php?lang=en&sel=content/download_item&id=34) utility.
hth, frank
georgedrakakis
04-15-2007, 03:50 PM
tnx Frank, i'll give it a try.
donelgreeko
04-15-2007, 06:17 PM
Hi!
If you have questions with handling this xpression, ask me :)
georgedrakakis
04-15-2007, 06:52 PM
Hi!
If you have questions with handling this xpression, ask me :)
hi donelgreeko,
i have successfully loaded the xpression + the txt file with ral2rgb values.
my problem is what to actually do with the txt file (!).
(due to inexperience, of course).
i added a user data value with "ral code notation" (i.e ral 9006, etc.)
and i want to match the ral code notation (user data)
with the text line of the txt file that contains the ral code notation & rgb values,
so i can extract the rgb values into a used data color field.
ps: i did the ral2rgb converter the hard way, with a lot of typing.
i'll check if these values are correct and i'll post it soon.
donelgreeko
04-15-2007, 07:16 PM
Hi :)
Yeah, in this case, you have to work with c.o.f.f.e.e. Load it in a coffee string and search in the SDK for "compare" or something like this. Or you try something like this.
for(i=0;i<strlen(text);i++)
{
something like this.
you try the each char with "is it the same or not"
}
georgedrakakis
04-15-2007, 07:22 PM
Hi :)
Yeah, in this case, you have to work with c.o.f.f.e.e. Load it in a coffee string and search in the SDK for "compare" or something like this. Or you try something like this.
for(i=0;i<strlen(text);i++)
{
something like this.
you try the each char with "is it the same or not"
}
hi,
tnx a lot for your help.
i'll give it a try, after i am done with my w.i.p Ncs2rgb colour converter
CGTalk Moderation
04-15-2007, 07:22 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.