Results 1 to 8 of 8

Thread: File Writing

  1. #1
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default File Writing

    Is there a way to write to a file without truncing it?
    ~ Metagen

  2. #2
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nvm i figured it out you unhelpful noobs.
    ~ Metagen

  3. #3
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Metagen View Post
    nvm i figured it out you unhelpful noobs.
    were not unhelpful noobs
    some of us has coding to do ourselfs and others might not know how to and others might not have been online

    so the only unhelpful noob here is you for calling us unhelpful noobs

    ~shut

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I think he was just kidding ? Not to be a Homo peace keeper or anything

    noidea
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  5. #5
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I think you all just fail.

    I assume read then add on the text to be written onto the end then write it all over it?
    (I like endings to things )
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  6. #6
    Join Date
    Nov 2006
    Location
    'Pergamino, BA, Argentina';
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I do it like this:

    SCAR Code:
    procedure SaveDebugToFile;
    var
      DebugFile, filenum: Integer;
      DebugText, str: string;
    begin
      filenum := OpenFile(apppath + 'shady gold pwner2.txt',true);
      ReadFileString(Filenum,str, FileSize(filenum));
      CloseFile(FileNum);
      DebugFile := RewriteFile(apppath + 'shady gold pwner2.txt', False);
      DebugText := GetDebugText;
      WriteFileString(DebugFile,str + chr(13) + DebugText);
      Writeln('Saved debug to file: shady gold pwner2.txt');
      CloseFile(DebugFile);
    end;

    It saves the debug box text to a file, but you have to create the txt file and place it in the scar folder first =/

  7. #7
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea yea, i figured it out like 5 hours ago guys, why are you still posting.
    ~ Metagen

  8. #8
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Hey, a little bit more easy
    Don't be angry


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Writing to files
    By FrÕzÑ_§ÕµL in forum OSR Help
    Replies: 7
    Last Post: 03-10-2008, 03:31 AM
  2. Do you like writing?
    By lakerzz8 in forum Discussions & Debates
    Replies: 3
    Last Post: 02-24-2008, 08:23 PM
  3. Reading and Writing to file
    By king vash in forum OSR Help
    Replies: 2
    Last Post: 01-22-2008, 03:20 PM
  4. Writing to a text file
    By JNCR in forum OSR Help
    Replies: 2
    Last Post: 10-20-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •