记事本 [英] notepad

查看:91
本文介绍了记事本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的记事本中我有两行数据由空格键分隔。第一行的值应保存在一个变量中,另一个值保存在另一个变量中。所以,如何区分这些值,因为它们在同一行。

任何建议plz ....


in my notepad i have 2 rows of data seperated by spacebar. value of first row should be saved in one variable and the other in another variable. so, how to differentiate between this values as they are in the same line.
any suggestion plz....

推荐答案

使用字符串.split将行拆分为字符串数组的元素 - 使用空格作为分隔符
use string.split to split the line into to elements of a string array - using the space as the divider character


hi,

如何从记事本中获取值保存在任何变量中。

how to take a value from notepad and save it in any variable.


从notepad.exe或硬盘驱动器上的文本文件?
From the notepad.exe or from a text file on the hard drive?


这篇关于记事本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆