China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 11:11
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to read each character in a text file? View 774 Replies 3
Original Poster Posted 2007-04-27 07:16 ·  中国 北京 联通
初级用户
Credits 50
Posts 18
Joined 2007-04-20 05:57
19-year member
UID 85810
Gender Female
Status Offline
For example, there is a txt like this:
1,2,3.......
4,5,6......
7,8,9......
............


Explanation: the number of rows and columns in this txt is not fixed. How can I read each number in each line in sequence? The numbers in each line are separated by ",".
Floor 2 Posted 2007-04-27 07:51 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
Are the numbers between every two commas all single-digit?
Floor 3 Posted 2007-04-27 07:57 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
This has been discussed many times before, about reading characters one by one.
Floor 4 Posted 2007-04-27 09:51 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
OP should search first. There really are a lot of similar posts.
Forum Jump: