当前位置:编程学习 > C#/ASP.NET >>

关于C#将16进制转换成ASCii问题

我用sql2000的導出數據功能,導出成文本格式txt: 
內容: 
151,9E186F01CD48CA19EF491FCD98D745C73EA3DF06C7FDB96853EA9C940B9CAB02F88EA21A04EA50FCDF0688E69940A0BE1F1E022B9BC890AA793BEC9CD96DCAE951014DA324D8FC2FDE44C25602A08BB3EE0C9D3E84A99F5C10A230D25488CFFF92EEB04F9D90F6EEE5AAB644EDAAF8206EC0D41A8C5E122F5108C2DE464E48D4466A3AB154FFD3E87737A2C53FBBFF2F96F89B7997A736E881E7AE79C58F94676343677358B43B680DC5380D43ED4ACA50DA209843BB8765BEB07C9903BC2CB7B6C912F1C4B3BB6AF46D993280506EE6AB55CD501630302A9786D3EB01F6EE7A8880FD4CAACD8C5EA15C34E10A2A01AAC7787AEF303B27302156F531FB24A225A26737CC555ACCC7D750767AC959C5BDBA176154611EC297CCA2899E6C7E8663DABE99F99B7574E438774717F704FAEBAA214A71DB5B15DEAD2A47DCEA3D9722B25CBF3DB0091872BD5CE33B516885CF420076F7504A7347E37CEB7EB73CC5D5198C182D56A9F1E0FD229382A3E97312EDB7C139482F4A08D4744419E866F7E6F6181908CE39025A683EA4C4FF828CE4F9DB3DA83C53EA8C955753129EF2FAE92899624D206382FA7F4532FEF0275B51AF65BF6FB464B075C4E24FF8B9A3321CC804C085CC6C2499DB02E5EDBAA7BBCE2B2E93161A62C26FD5D620C6F3B03FD9C99099022745D538815F13DC02D920E46DF59EE3AB0707274D3DBF8FBE52CBFC07A4D1EB6BDFA7456BC3732D08A66836A7E683D34E7FEE2951EE0AB2021AF664CA01DA9AD7B2DB22858C3C44C203CC07CDB92AA5D816F04634E6B4C73EACE52ECB639C78B18583B79A5CF9639DBF6B9EC8F0C84E7800B638FDF0E035AE24D9D197B1BD049B1F68322CD34D2DAD19E5364C62613957AF9ABFA21B78785F25454E038B8CFB4017EC340175E69A7047A025C7C94094A540F6744C2960BEC9376248D272C5FFF294286DA792443F4A825E79A058A21054D3FB42308F2471A79AC8F4A55D9C5E9982218F9AF26BF630E8155964DDFA935208760E866CF33DFC3911179A4C9B84595D7D7196838F7F85209755C7ABA0C161E1CF692D34E5127E6D5245D553A9D4F437C0A44BC0B08FF9B2A09F0F1ED3C11808199265F7B2E6064DDF59362E57DF3453ADC2C6D9B46C729A8CF5172A0575533701BA53B76F4AB95CAB59F9665F34FC1AF7D49A4FD39B2CB548F5F971FC2F5AEAAEA93FFABE62CF716267ABD6AF29763BF55184F9D741CCB0F8F17B5561358EC7542108D0FE61D60C4DCE7CF3FD44447E101459747902C4AB86FA9243708344AE3197CBE30E0E6A1E00BFF85CA28882F7B4BA3CFCE892843F590ADB2653D13859D40F951A6ACBA30F1EA4EDE4C56E02F8925174FFBBC1FCD3EC26363E0D1430E3034B7C4310071F7A1C6EEFCD107C59EAF0A4AC99570BFE97C138746B80878E97F3A2368B87899C078562D3178A8D669F544FE09B238F7BCEA3AD746FF36C07B3E8093B68BBDFB2A0951F09B3140BAC3594C27C5F0C1203ABD587BF55D1F7C1AD90492418B81C175A666BF3B6F80156531E3447BADEB1A5A1218BE924FD90CAA22ADA814DBE5E3A0925D3DF6C80F2098F7A3B1227D3E719308F6ABDE6B59A104C72F4115770,
要转换成以下这样的对话脚本:程序应该怎么写,普通的转没有用
--????-??? ??-?? ??

function Hello()
if CheckQuest(0x2086) == true then
if GetStep(0x2086) == 1 then
if CheckCompleteStep(0x2086) == true then
MSG("以人的力量无法移动的巨石")
MSG("巨石中间有个窟窿。")
MENU("往窟窿放入头盖骨。", "Aa")
MENU("结束对话", "Close")
return
else
MSG("以人的力量无法移动的巨石")
MSG("巨石中间有个窟窿。")
MSG("需要收集黎明峡谷的怪物头盖骨,放入窟窿里。")
MENU("结束对话", "Close")
return
end
elseif GetStep(0x2086) == 2 or GetStep(0x2086) == 3 or GetStep(0x2086) == 4 or GetStep(0x2086) == 5 then
MSG("以人的力量无法移动的巨石")
MENU("进入内部", "Ba")
MENU("结束对话", "Close")
return
end
else
MSG("以人的力量无法移动的巨石")
MENU("结束对话", "Close")
return
end
end

function Aa()
MSG("正好与巨石中央的窟窿吻合。")
MSG("整个巨石瞬间发出光芒,变为半透明。")
MSG("用手触摸巨石,刚刚还坚硬冰冷的巨石,居然变得柔软起来,手也往巨石里陷了进去。")
MENU("进入巨石内", "Ab")
end

function Ab()
Warp(7355, 9647) --?? ?? ?? ??
DeleteItem(0x70F2, 1) --? ??? ???
SetNextStep(0x2086)
end

function Ba()
Warp(7355, 9647) --?? ?? ?? ??
end --------------------编程问答-------------------- 这个有点难度 ,先顶你 --------------------编程问答-------------------- http://topic.csdn.net/u/20090909/16/cafc276b-bf95-4e20-835f-d9e212dc8ec4.html

参考下,换下导出方式看看 --------------------编程问答-------------------- 试了好多都不行,都达不到想要的结果
补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,