Blockland Forums > Modification Help
Converting a .txt file to a .cs
MegaScientifical:
--- Quote from: Ipquarx on May 31, 2011, 03:17:22 PM ---%filefrom.copy();
%fileto.paste();
--- End quote ---
This part is where you'd put real code, btw.
Plornt:
You should get Notepad++, makes life easier for all scripting languages:D
Chrono:
--- Quote from: Ipquarx on May 31, 2011, 03:17:22 PM ---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();
--- End quote ---
No.
Please do not post things if you only 'think' its right.
Please be absolutely sure. This is a help section, not a research section.
--- Quote from: Plornt on May 31, 2011, 04:44:08 PM ---You should get Notepad++, makes life easier for all scripting languages:D
--- End quote ---
This isn't related to the topic.
MegaScientifical:
Chrono, do you think what I said about fileCopy would work?
Chrono:
I'm not sure how to do fileCopy exactly, but it seems right.