Computer Science Canada quick question writing to a file |
Author: | SsJBebiGoku [ Sun Sep 19, 2004 3:16 pm ] | ||
Post subject: | quick question writing to a file | ||
Hi. I am trying to write to a file a bunch of mailing information and stuff but the cursor always gets set back to the beginning...is there a way to maybe make the cursor go down a line and keep writing from there or somehting? Here's the code, thanks a bunch:
|
Author: | rizzix [ Sun Sep 19, 2004 3:45 pm ] | ||
Post subject: | |||
its because the..
lines are within your for-loop.. you need to move them outside the loop. |
Author: | SsJBebiGoku [ Sun Sep 19, 2004 4:08 pm ] |
Post subject: | |
thanks a lot...one more little question - do you know if there is a way to rename a file? in this case, i need to rename it to the user's name... thanks |
Author: | rizzix [ Sun Sep 19, 2004 7:26 pm ] | ||
Post subject: | |||
yes there is.. for example:
|