将代码转为C#代码
哪位兄弟帮以下VB代码转为C#代码,谢谢。
Dim ifile As Integer, j As Integer
Dim vByte As Byte
Dim lLoc As Long
Dim ENcrt as string
Dim Estr as string
ENcrt="abcdefghiklmn"
Tfile="D:\123.txt"
iFile = FreeFile()
Open Tfile For Binary Access Read Write As #ifile
For lLoc = 1 To LOF(ifile)
Get #iFile, lLoc, vByte
For j = 1 To Len(ENcrt)
vByte = vByte Xor Asc(Mid(ENcrt, j, 1))
Next j
Put #ifile, lLoc, vByte
Next lLoc
Close #ifile
Open Tfile For Input As #1
Line Input #1, Estr
Close #1
DelFile Ffile
Dim ifile As Integer, j As Integer
Dim vByte As Byte
Dim lLoc As Long
Dim ENcrt as string
Dim Estr as string
ENcrt="abcdefghiklmn"
Tfile="D:\123.txt"
iFile = FreeFile()
Open Tfile For Binary Access Read Write As #ifile
For lLoc = 1 To LOF(ifile)
Get #iFile, lLoc, vByte
For j = 1 To Len(ENcrt)
vByte = vByte Xor Asc(Mid(ENcrt, j, 1))
Next j
Put #ifile, lLoc, vByte
Next lLoc
Close #ifile
Open Tfile For Input As #1
Line Input #1, Estr
Close #1
DelFile Ffile
...全文
相关推荐
椭圆弧转为多段贝塞尔曲线的C#算法代码
椭圆弧转为多段贝塞尔曲线的C#算法代码.在处理SVG的时候特别有用.
java 源代码 转为 C# Free Edition Java to C# Converter.Patched.zip
好用的java 源代码 转为 C# 代码的工具,可以把目录内的 js 源代码 批量转为 C# 代码,值得收藏的工具
vb代码转为C#代码
一个小巧的VB转C#工具,使用很方便
显示中文星期程序,将英文的星期几转为中文,C#源代码程序,附详细说明。
显示中文星期程序,将英文的星期几转为中文,C#源代码程序,附详细说明。
C#:原始图像转为LBP特征图像(VS2010窗体+代码)
利用VS2010,C#语言将原始图像装为LBP特征图像。学生一枚,虚心接受批评。


