| Blockland Forums > Modification Help |
| Converting a .txt file to a .cs |
| (1/5) > >> |
| eddierocks2000:
Stupid question. I don't know how to do it. |
| Chrono:
Depends on your operating system. On XP, (and maybe others, not sure) -Open the folder it's in. -Tools>Folder options... -[View] -Uncheck "Hide extensions for known file types" -[OK] Then rename it to a .cs file. Do not do this for any other type of file, such as images, sounds, videos, etc. |
| eddierocks2000:
Alright Thanks. |
| MegaScientifical:
I was about to post some script to re-write a .txt into a .cs, but then I saw Chrono's post. And as I was typing this, I thought: fileCopy(%path @ %filename @ ".txt", %path @ %filename @ ".cs"); Which I never use fileCopy to know if that would work. |
| Ipquarx:
I belive it goes something like this: %filefrom = new FileObject(); %filefrom.openforread(path); %fileto = new FileObject(); %fileto.openforwrite(path) %filefrom.copy(); %fileto.paste(); %filefrom.close(); %filefrom.delete(); %fileto.close(); %fileto.delete(); |
| Navigation |
| Message Index |
| Next page |