Nemo #6624(2008/06/30 09:03 GMT) [ PostScript ] Rating0/0=0.00
普通 PostScript ではプリンタ依存性が大きくなるので外部ファイルの読み込みをユーザープログラムでやることはないと思います。 ここでは GhostScript で試しています。 ShowPrice.ini --- Cut Here --- /ITEM_NAME (リンゴ) /ITEM_COST 200 --- Cut Here ---
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
%!PS /ReadPrice { % (filename.ini) ReadPrice -dict- << exch runlibfile >> } bind def % --- Test Code --- (ShowPrice.ini) ReadPrice dup (ITEM_NAME) get (「) print print (」は) print dup (ITEM_COST) get 1.05 mul 0.5 add cvi 10 string cvs print (円(税込み)) = pop
Rating0/0=0.00-0+
[ reply ]
Nemo
#6624()
[
PostScript
]
Rating0/0=0.00
%!PS /ReadPrice { % (filename.ini) ReadPrice -dict- << exch runlibfile >> } bind def % --- Test Code --- (ShowPrice.ini) ReadPrice dup (ITEM_NAME) get (「) print print (」は) print dup (ITEM_COST) get 1.05 mul 0.5 add cvi 10 string cvs print (円(税込み)) = popRating0/0=0.00-0+
[ reply ]