解读单词并写入文件(有代码) [英] unscramble words and write to file (have code)
本文介绍了解读单词并写入文件(有代码)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hihi
首先我在另一个论坛上从另一个人那里获得了大部分代码,但我一直在疯狂地修改它以便它从一个混乱的单词列表中读取将未加扰的单词输出并输出到另一个文件。
scrambled.txt =输入文件
unscrambled.txt =输出文件
这里是代码:
展开 | 选择 | Wrap | 行号
解决方案
如果你''重新从论坛上复制代码,至少复制一下:
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号
另外,这个:
展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号
确定所以我修改了它:
展开 | 选择 | Wrap < span class =codeDivider> | 行号
hihi
Firstl i got most of this code from another person on another forum but I have been trying like crazy to modify it so that it reads a list of scrambled words from a file and outputs the unscrambled words to another file.
scrambled.txt = input file
unscrambled.txt = output file
here is the code:
Expand|Select|Wrap|Line Numbers解决方案If you''re going to copy code off a forum at least copy it right:
Expand|Select|Wrap|Line Numbers
Also, this:
Expand|Select|Wrap|Line Numbers
ok so I modified it:
Expand|Select|Wrap|Line Numbers
这篇关于解读单词并写入文件(有代码)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆