【发布时间】:2009-09-26 11:59:12
【问题描述】:
我正在做一个 VB 程序,使用四个 for 循环来生成一组数字,使用以下代码.....
For sphere = 1 To 10
For cylinder = 2 To 20
For axis = 3 To 30
For add = 4 To 40
Console.WriteLine("{0} , {1},{2},{3} ", _
sphere, cylinder, axis, add)
Next add
Next axis
Next cylinder
Next sphere
我需要将此程序的输出导出为 CSV 格式...... 任何人都可以通过提供合适的代码来帮助我做同样的事情......
【问题讨论】:
-
StreamWriter 和 string.Format ("{0},{1},...
标签: vb.net