如何读取和检查文件的每个字符? [英] How to read and check each character of a file?
本文介绍了如何读取和检查文件的每个字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想检查文件的每个字符,如果是斜杠或其他字符,并且如果此字符是斜杠,我想添加另一个斜杠...
我需要你们的帮助!
谢谢!
Hi,
I want to check each character of a file, if it is a slash or something else and if this char is a slash, I wanted to add another slash...
I need your help guys!
Thanks!
推荐答案
如果您以前从未用Java编写过代码,则可能需要以 ^ ].
If you have never coded in Java before then you probably need to start with some Tutorials[^].
http: //www.java2s.com/Code/Java/File-Input-Output/Readfilecharacterbycharacter.htm [
这篇关于如何读取和检查文件的每个字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文