Sub 文字识别()
strPicPath = Application.GetOpenFilename(, , "打开图片") '打开文件
EncodeFile (strPicPath)
End Sub
Public Function EncodeFile(strPicPath As String) As String
Const adTypeBinary = 1
Dim objXML
Dim objDocElem
Dim objStream
Set objStream = CreateObj
我有一个简单的C函数,其中,我让用户提供一个路径名,该函数检查它是否是有效的文件。
# include <stdio.h>
# include <string.h>
int main(void) {
char cFileChoice[256];
FILE * rInputFile;
unsigned int cFileLength;
printf("\nPlease supply a valid file path to read...\n");
fgets(cFileChoice, 255, stdin