Advertisement
Advertisement
| 04.11.2008 at 10:33AM PDT, ID: 23315882 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.11.2008 at 11:08AM PDT, ID: 21336671 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: |
# untested Python code:
text="""1
2
ab_dog_xxx_cd
ab_coals_xxx_cd
ab_wet_xxx_cd
0.1
ab_pt_xxx_cd
0.2
ab_rocks_xxx_cd
0.2
ab_stream_xxx_cd
0.1
ab_urban_xxx_cd
0.4"""
for n in range(75, 408):
yyy = "%03i" % n
text2 = text.replace("xxx", yyy)
open('newfile_%s.iml' % yyy , 'w').write()text2)
|
| 04.11.2008 at 11:13AM PDT, ID: 21336715 |
| 04.11.2008 at 11:50AM PDT, ID: 21337043 |
| 04.11.2008 at 12:51PM PDT, ID: 21337593 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: |
Const ForWriting = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Repeats the same sequence for the numbers 75 through 407
For i = 75 to 407
'Adds a leading zero if the counter is a 2-digit number
If Len(i) = 2 Then
intNum = "0" & i
Else
intNum = i
End If
'Defines the new file name
strNewFile = "newfile_" & intNum & ".iml"
'Creates the new file and adds text, including the counter
Set objNewFile = objFSO.CreateTextFile(strNewFile, ForWriting)
objNewFile.WriteLine "1"
objNewFile.WriteLine "2"
objNewFile.WriteLine "ab_dog_" & intNum & "_cd"
objNewFile.WriteLine "ab_coals_" & intNum & "_cd"
objNewFile.WriteLine "ab_wet_" & intNum & "_cd"
objNewFile.WriteLine "0.1"
objNewFile.WriteLine "ab_pt_" & intNum & "_cd"
objNewFile.WriteLine "0.2"
objNewFile.WriteLine "ab_rocks_" & intNum & "_cd"
objNewFile.WriteLine "0.2"
objNewFile.WriteLine "ab_stream_" & intNum & "_cd"
objNewFile.WriteLine "0.1"
objNewFile.WriteLine "ab_urban_" & intNum & "_cd"
objNewFile.WriteLine "0.4"
objNewFile.Close
Next
|
1: |
open('newfile_%s.iml' % yyy , 'w').write(text2)
|