写入文件的问题
用lisp能不能把一个字符写到原有的一句之后。如在1.txt中已有一句aaaaa我想把bbb加到他的后面但是同一行,而不是换行的:
aaaaa bbb
而不是
aaaaa
bbb
行吗? 如图所示,我想把它写入*.txt的时候就显示成
1 2
3 4
其中1,2字几乎在同一直线上,3,4也是在同一直线上的,有没有什么好办法?
Read "aaa" from the original file, use "strcat" to put it and " bbbb" together, then write it to another file. 看看. strcat 涵數的用法
页:
[1]