Search:

Type: Posts; User: sakonpure6

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    In my case , I have coins that the user collects. I want to be able to, when the user collects a coin, it's place to be replaced by a grass sprite. This is represented by the char "g" in the map .txt...
  2. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    I know how to read entire lines of text from , column by column (is there a way to copy the text char by char?) . But I do not know how to delete all the useless data in the same .txt file.
  3. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    exactly.
  4. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    In accordance with post #7 , I want this to be written in the same file.
  5. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    okay for example :

    how would you do it with this ?
  6. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    My "Map.tx" has the following:

    (Each Line 22 char long)


    and you see where there is a "c", in my code if my char touches it, I want to replace it with a "g" which stands for grass. Therefore...
  7. Replies
    15
    Views
    1,479

    Re: Writing to a txt file from the top.

    Great so lets say I copied all the old code, how do I get rid of the new one in the Map.txt file?
  8. Replies
    15
    Views
    1,479

    Writing to a txt file from the top.

    Let's say I have a text file with multiple lines of text. When I read the file and want to write to it, how can I add my text to the top of the file, rather than the bottom (after the original lines...
Results 1 to 8 of 8