2个回答
2013-12-17
展开全部
把读取一起给你了
Private Sub Form_Load()
Text1.MultiLine = True
Dim x As String
Open App.Path & "\版本说明.txt"盯滑圆 For Input As #1
Input #1, x
Text1.Text = Input(LOF(1), 1)
End Sub
"你好"改成上面写入UTF-8
==================================================
ADODB.Stream组建
Private Sub Command1_Click()
ToUtf8 "你好", "让型c:\ab.txt"凯塌
End Sub
Private Sub ToUtf8(ByVal s As String, ByVal FilePath As String)
Dim stmStr
Set stmStr = CreateObject("ADODB.Stream")
stmStr.Open
stmStr.Charset = "utf-8"
stmStr.WriteText s
stmStr.SaveToFile FilePath
stmStr.Close
Set stmStr = Nothing
End Sub
Private Sub Form_Load()
Text1.MultiLine = True
Dim x As String
Open App.Path & "\版本说明.txt"盯滑圆 For Input As #1
Input #1, x
Text1.Text = Input(LOF(1), 1)
End Sub
"你好"改成上面写入UTF-8
==================================================
ADODB.Stream组建
Private Sub Command1_Click()
ToUtf8 "你好", "让型c:\ab.txt"凯塌
End Sub
Private Sub ToUtf8(ByVal s As String, ByVal FilePath As String)
Dim stmStr
Set stmStr = CreateObject("ADODB.Stream")
stmStr.Open
stmStr.Charset = "utf-8"
stmStr.WriteText s
stmStr.SaveToFile FilePath
stmStr.Close
Set stmStr = Nothing
End Sub
2013-12-17
展开全部
public class 输入排闭码搏序 {
public static void main(String[] args) throws IOException{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String test;
System.out.print("请输入");
test=in.readLine();//让模信你输入字符串;
StringTokenizer stoken=new StringTokenizer(test," ");
int []num = new int[10];
while(stoken.hasMoreElements()){
for(int i=0;i<轿祥10;i++){
num[i]=Integer.valueOf(stoken.nextToken());
public static void main(String[] args) throws IOException{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String test;
System.out.print("请输入");
test=in.readLine();//让模信你输入字符串;
StringTokenizer stoken=new StringTokenizer(test," ");
int []num = new int[10];
while(stoken.hasMoreElements()){
for(int i=0;i<轿祥10;i++){
num[i]=Integer.valueOf(stoken.nextToken());
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询