Blockland Forums > Modification Help
Getting a code and setting it to clipboard
<< < (3/4) > >>
jes00:

--- Quote from: Danny Boy on March 01, 2012, 05:30:20 PM ---
--- Code: --- %file.openForRead("Add-Ons/"@%m@"");

--- End code ---

--- End quote ---
The last @ and "" at the end is not needed.
Danny Boy:

--- Quote from: jes00 on March 01, 2012, 05:52:09 PM ---The last @ and "" at the end is not needed.

--- End quote ---
I know but personally I just feel better doing it like that. I'm just awkward in that way :P
Jardev:
Also, this part:

--- Code: --- while(!%file.isEOF())

{

%string = %string SPC %file.readLine();
}
--- End code ---
Should turn into:

--- Code: --- while(!%file.isEOF())
{

%string = %string $= "" ? %file.readLine() : %string SPC %file.readLine();
}
--- End code ---

So that the first character of %string isn't a space.
Lugnut:
Or he could just change SPC to @.
Chrono:
Why SPC?

Aren't they new lines?
Navigation
Message Index
Next page
Previous page

Go to full version