User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Create file with "FILE" Extensione BIG PROBLEM

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Create file with "FILE" Extensione BIG PROBLEM

    Hello, you can create with the "FILE" file inside a specific directory in txt format and copy into it the contents of another txt file?
    EXAMPLE
    I have a project where it stores all the information of my objects and variables in an ini file (pippo.ini for example).
    when I start the "save file as" I want to copy the content of this INI file "PIPPO" in the new file I created.
    I tried many times but I could not find the solution.

    I created a complex System that copies are clones and are the coordinates of any objects, but I wanted to create a save system equal all classical programs.

    Please, you can create me a small example where a file is created in c:\?
    this feature is very important to me.
    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    Use the Rich Edit object to load a text file, then append the text in the Rich Edit object to your file via the File extension.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    thanks I tried and I managed to upload my values in the rich text. now I have to take those values and copy them to a new file, but I can not create this file. I tried to create it in a way, but I can not create any file. Could you help me with this shock following? I'm trying for several hours, maybe I can help with much earlier.

    I now have everything in the project that has been stored in my file "ini" pippo.
    second step:
    I have to save this content into a new file that I must create and name with the extension "file"

    Please could you do me a small example in MMF2?
    Thanks for the time you have been very useful

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    If I understand correctly, a simple solution would be the File Object. Under "File Actions," go to "Copy a file" and add:

    Code:
    "C:\Your Path Name\pippo.ini"
    As the first parameter. And:

    Code:
    "C:\Your Path Name\pippo.file"
    As the second.

    Hope that helps.

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    Quote Originally Posted by Game_Master
    Use the Rich Edit object to load a text file, then append the text in the Rich Edit object to your file via the File extension.
    RTF != TXT

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    thanks for your help.
    Riuscitop have to create the save and load function with the load / save RTF Text via selector, but now I have a very big problem.

    I save the contents of the rich edit object 'in a ini file and then load the content of this INI file but every time I save in this ini file is written to the rescue and not deleting and writing.

    es

    Save these parameters
    SW1 = 1
    SW2 = 1
    SW3 = 1

    when I go to re-save these values, this happens

    SW1 = 1
    SW2 = 1
    SW3 = 1
    SW1 = 1
    SW2 = 1
    SW3 = 1

    you can erase the textual contents of the ini file?

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    Do what Jaffob said and do not use the Rich Edit Object for this. It is a bad idea to use the Rich Edit Object.
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    how do I create an. ini file in a specific directory?
    I read that you need to write this before the name, but I tried and could not create this file.

    help ini Add ".\" before the name
    you can write the correct sequence to create an ini file in C: \?


    Lastly, do I have to delete the contents of file.ini. I can only add written, but you can not clear all characters internal?

    there is no app for this?
    thanks

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    Yes, it can be done. But, I am not sure if you want to:
    -copy a file?
    -move a file?
    -create an empty file?
    -open a file, modify it, and save it somewhere else?
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Create file with "FILE" Extensione BIG PROBLEM

    I just need a function that erases the events stored in the INI file I'm using.


    Before you load all the values of the objects I have on my schedule for this INI file, first I have to remove its content not to have twice the usual rescue.

    How do I delete the events stored in the INI file with MMF2?
    I tried app "FILE" with the task of exchanging my INI with the values stored and replace that file with a new, empty, but nothing happens.

    If that is possible to delete the contents of a file, I have solved my problem.

    I believe in your support

    Before you load all the values of the objects I have on my schedule for this INI file, first I have to remove its content not to have twice the usual rescue.

    How do I delete the INI file with MMF2?
    I tried app "FILE" with the task of exchanging my INI with the values stored and replace that file with a new, empty, but nothing happens.

    If that is possible to delete the contents of a file, I have solved my problem.

    I believe in your support...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. INI Problem > Works only if "Create INI file in Application Data folder" is checked.
    By Hawanna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th June 2012, 05:47 PM
  2. Replies: 2
    Last Post: 7th November 2011, 04:30 PM
  3. "No error message is available" when I try to create a ZIP file for xcode
    By 1234cb in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 1st November 2011, 07:58 PM
  4. another problem with "seek failed on unknown file"
    By Sarge31FR in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 5th January 2008, 01:31 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
  •