我有两个文本文件。其中一个被称为“RoundOneWinners”,如下所示:
C,18
D,22
F,25
E,26
另一个名为“RoundTwoTotalScores\u entered”,如下所示:
C, 9
D, 15
F, 21
E, 27
我需要做的是在每个文本文件中添加相应的字母,然后将它们保存到一个新的文本文件中。 未来的文本文件应如下所示:
C, 27
D, 37
F, 46
E, 53
^这是通过将两个文本文件中的C和C相加而形成的
问题是,我将使用什么代码来打开这两个文本文件,能够将代码取出,然后将它们添加到一起。很抱歉,我没有任何示例代码,我不知道从哪里开始,因为我在这方面非常新
你可以试试这个。请记住,您需要确定文件的读写位置。你知道吗
一个简单的答案:
相关问题 更多 >
编程相关推荐