Create file txt

Hello,
How I do to create a file txt with action script.
Thanks

you can't use actionscript alone. you'll need to use
something else in addition to flash like some server-side code
(php, perl etc).

Similar Messages

  • How to create a txt file, load it, modify it and then save it again?

    Hello everyone!
    I have a question and I hope you'll help me.
    I'd like to create a txt file (please see attached pdf file) but I don't know how. I've tried many methods but it's not working 
    The user should be able to change the parameters (for example "Time", "Time Type" ...etc) and the corresponding values from the Front Panel.
    The number of section (Begin Line......End Line)  is 128.  Means, the final file should contain  "Begin Line1....End Line1"   till  "Begin Line128....End Line128".
    Please, take a look at the attached file to see how does the structure of the file look like.
    Note:  the seperator between a parameter (example, "Time") and its value (example, "7" in the section "Begin Line1....End Line1") is a colon( " : " ) and not an equal (" = ").
    Thank you very much for your help.
    Best regards
    Attachments:
    Batch File.pdf ‏8 KB

    Hi
    thanks for your answers.
    I'm using LV 8.2  and my file should be saved in txt.
    Initially the file doesn't exist. So, the user choose the parameters and their values from the Front Panel
    and then hit a button to create that file. The user should be able to reload (Front Panel button) the created file, modify it or not and then resave it.
    Before hitting the "create file" button the user define (on the Front Panel)  the number of sections ("Begin Line.....End Line") to be created.
    I joined a VI here just to explain the idea. May be that can help you to help me.
    I appreciate yoyur help!
    Kabanga
    Attachments:
    Create batch file.vi ‏14 KB

  • Creating new text file (txt.) everytime a string is passed in

    Dear all, need some help from you all. I am now developing a web service program to allow users to type in a string of characters. And will need to create txt. file to store this strings. Currently, i hard code the directory and the name of the txt file (e.g C:\\test.txt) does anyone know if possible solution to create new txt. file (using different names) whenever a string is passed in from the web service? I am using J2EE as programming language and BEA Workshop for Weblogic Platform version 10.
    Thank You very much.

    well, make the name as argument.
    and new File(name)...blablablabla

  • Create an outbound flat file .txt file from SAP to UAPM.

    How to Create an outbound flat file .txt file from SAP to UAPM (Unicenter Asset Portfolio Management).

    What do u want in flat file and what is your doubt please let me know as iam working i can help u

  • Command to create a txt file??

    Hi
    I am trying to find a command to create a text file...
    ==============================================================
    public static void main(String[] args) {
              System.out.println("Enter the name of the file to be created:");
              try{
                   BufferedReader name=new BufferedReader(new InputStreamReader(System.in));
                   //Create file using the input string
    ????????????????????????

    If you are going to write to the file, just open a
    stream and write -- the file will be created.
    On the other hand, if you are just trying to create a
    new, empty file, use File's createNewFile.I think with the FileWriter that it will automatically create a new file if it doesn't exist.
    Would it be safer/wiser to use createNewFile?

  • Help needed in creating File Directory if not exist

    hi, All
    I am thinking about wite files to directories based on year, month, day. if the directory for that year or month or day exists already, do not create the directory, but write the file to that directory.
    For example: 2003/02/22/file.txt --2003/02/22 exist, just write file.txt
    If the directory does not exist, the program will create the direcotry and write the file into the right directory.
    For example 2003/02/22/file.txt, ---2003/02/22/ does not exist, the program will create the directoies and write file file.txt
    If anyone can provide any example or suggestion, I really appreciate!
    Thanks
    Steve

    Hi!
    Just have a look at the class "File"
    and it's method "exists()".
    Hope, that helps.
    Thoto

  • Cannot create file with Non-latin characters- I/O

    I'm trying to create a file w/ Greek (or any other non-latin) characters ... for use in a RegEx demo.
    I can't seem to create the characters. I'm thinking I'm doing something wrong w/ IO.
    The code follows. Any insight would be appreciated. - Thanks
    import java.util.regex.*;
    import java.io.*;
    public class GreekChars{
         public static void main(String [ ] args ) throws Exception{
              int c;
              createInputFile();
    //          String input = new BufferedReader(new FileReader("GreekChars.txt")).readLine();
    //          System.out.println(input);
              FileReader fr = new FileReader("GreekChars.txt");
              while( (c = fr.read()) != -1)
                   System.out.println( (char)c  );
         public static void createInputFile() throws Exception {
              PrintStream ps = new PrintStream(new FileOutputStream("GreekChars.txt"));
              ps.println("\u03A9\u0398\u03A0\u03A3"); // omega,theta,pi,sigma
              System.out.println("\u03A9\u0398\u03A0\u03A3"); // omega,theta,pi,sigma
              ps.flush();
              ps.close();
              FileWriter fw = new FileWriter("GreekChars.txt");
              fw.write("\u03A9\u0398\u03A0\u03A3",0,4);
              fw.flush();
              fw.close();
    // using a printstream to create file ... and BufferedReader to read
    C:> java GreekChars
    // using a Filewriter to create files  .. and FileReader to read
    C:> java GreekChars
    */

    Construct your file writer using a unicode format. If
    you don't then the file is written using the platform
    "default" format -probably ascii.
    example:
    FileWriter fw = new FileWriter("GreekChars.txt",
    "UTF-8");I don't know what version of FileWriter you are using, but not that I know of take two string parameters. You should try checking the API before trying to help someone, instead of just making things up.
    To the OP:
    The proper way to produce a file in UTF-8 format would be this:
    OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream("filename"), "UTF-8");Then to read the file, you would use:
    InputStreamReader reader = new InputStreamReader(new FileInputStream("filename"), "UTF-8");

  • CREATE file, SAVE a copy on local mechine, UPLOAD a copy to remote server

    Hi all,
    I have a question to ask here, i am developing a pure java app (client/server) which hopefully can
    1) client > create a file (abc.txt for e.g) save a copy in local mechine,
    2) upload the file to remote server that currently connected (consider store in server?)
    3) than remove the copy in local mechine
    -OR-
    1) create a document with JTextPane, when click on "Save" button,
    2) the file will upload ( through ftp and created abc.txt in remote server)
    Is this possible with java application?

    Thanks,
    but do you have any idea,
    how these things can happend...
    perhaps i can get some concept from you...about the program design and how the flow of the program..that could make file tranfer...to remote server.
    regards

  • How to create file in specific folder...

    Hi developers,
    I am new to java. I would like to create file in some folder. But i am fail to create it. Can any body help me please..
    This is my code. It creates folder well...But file doesn't create.
    import java.io.*;
    public class file1
         public static void main(String ar[])
              File f = new File("c:\\ram");
              f.mkdirs();
              String pat = f.getAbsolutePath();
              File ffs = new File("c:\\ram.txt");
              System.out.println(pat);
    }With Regards
    sure...:)-

    Also, it's not clear where you want the file.
    You're making a directory C :\ram, but then you're talking about a file ram.txt that's right in C:
    Also, you can use / instead of doubling up the \ and it wil get converted properly.
    If I wanted to create a file C:\ram\ram.txt I'd do this:
    File parentDir = new File("C:/ram");
    File file = new File(parentDir, "ram.txt");
    parentDir.mkdirs();
    file.createNewFile();

  • Dynamically creating file using variable

    HI, i am facing an issue in creating file on run time using variable.
    i have a variable FileName. In refresh tab i have written a query like SELECT TO_CHAR(SYSDATE,'YYYY,MM,DD') || 'TEST' FROM DUAL. i tested the variable and its value is correct.
    i have created an interface to extract the data from table and store it in file. i have assigned variable FileName to the file.
    Now when i run the interface...the file is created but the header is created in different file and its name is ambiguous e,g(19) and the data is placed in other file with the name which is the value of variable FileName.....
    ISSUE is two ODI creates two files one for header only and other for data....
    when i run my interface in a package the file created perfectly ..... but i dun want to use package i want to create file through running interface only

    one file name is some number like 19.txt and other filename is 20121211_TEST.txt (this name is coming from variable).....
    however when i create a package with variable and interface,only one file is created 20121211_TEST.txt (header and data are not created in separate files.)
    create header     (ID,
         NAME,
         DEPT)
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=TARGET_FILESNP$CRLOAD_FILE=*E:\tempProj/19*SNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=0x007eSNP$CRFILE_SEP_LINE=0x000D0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=IDSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=NAMESNP$CRTYPE_NAME=STRINGSNP$CRORDER=2SNP$CRLINE_OFFSET=51SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=DEPTSNP$CRTYPE_NAME=STRINGSNP$CRORDER=3SNP$CRLINE_OFFSET=101SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CR$$SNPS_END_KEY*/
    Edited by: 975356 on Dec 11, 2012 10:57 PM
    Edited by: 975356 on Dec 11, 2012 10:58 PM

  • How to create files into a NT authentication folder

    Hi all,
    I know how to create txt files on a local computer. But is it possible to create files into a NT shared folder on server machine which is user/password protected?
    thanks,

    Hi,
    try it with SAPFTP.
    look:
    - sample RSFTP004
    - <a href="/people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap">FTP</a>
    Andreas

  • How do I create a TXT record?

    I'm trying to figure out how to create a TXT record on OS X Server 4's DNS server.  Specifically for the Caching service's multiple public IP address requirements.  I'm, of course, using OS X Server's DNS implementation, but see no definitive method for creating TXT records.  I see there is a Text field for most record types, but usage is confusing at best.  Why would Apple choose not to implement TXT records, when this is a requirement of functionality for other supported services?  Not to mention, a good DNS implementation needs to have TXT record support.  Achieving this is trivial on Linux/Unix or Windows, but I can't even find reference to the BIND configuration file for Server 4, and it is no longer in the /var/named/ directory.
    Also, if anyone can point me to any documentation covering these services in detail, that would also be appreciated.
      -- Mike

    Thanks for the reply,
    I actually found the "named" directory just before reading this, and was able to edit the respective zone file, like a standard BIND configuration file.  I understand that Server.app will create a TXT record using the inheritance of the A record label, when using the Text field of the new A record dialog box.  However, this will not suffice if you need to create a TXT record starting with an underscore (_), as is required by Apple's own Caching service, when using different public IPs for clients.  Go ahead and try to make a TXT record entry for "_aaplcache._tcp", with the Server.app GUI and let me know how it goes...I'll answer that for you; "Not well, Mike."  This could likely function correctly if Apple implemented RFC 2181, in Server.app's GUI.  This expands the character set allowed for DNS names, stating that any binary string may be utilized for DNS labels.  Luckily, Apple implements BIND correctly, and serves the TXT entry when queried.  It also appears to leave the zone file intact when modifying other entries with the GUI.  The Server.app GUI does not parse the manually created TXT record however, and thus must be modified and maintained by hand.
      -- Mike

  • Is it possible to automatically create file names?

    If i do a set of measurements and i want to save each measurement in own file is it possible to automatically create filenames? For example XXX1.vi XXX2.vi ... XXXn.vi

    Is the n in XXXn a counter or a test number? See my attached example Create Report File from Serial Number. It creates a report file name starting with the serial number of the UUT and then appending a counter. You don't have to save the counter: the program looks for the next available filename on disk.
    Your question shows file names ending in .vi. You may not have intended it, but don't use .vi for data files: save that extension for real VIs. If each measurement has its own VI and you want to name the datafile based on the name of the calling VI, see my attached example Create Report File from Calling VI. It gets the name of the calling VI and creates a .txt file with the same name as the caller (with the new extension .txt).
    Attachments:
    Create_Report_File_from_Serial_Number.vi ‏58 KB
    Create_Report_File_from_Calling_VI.vi ‏46 KB

  • Creating a (.txt) document report

    hi all,
    i want to create report in oracle 10g forms in (.txt in notepad of windows) format .
    can anyone help me to do this with oracle 10 forms through programing .

    hi baig,
    i don't want to read the .txt document or not i don't need also a open file dialog to open a .txt document
    i want that like we are creating (.XLS),(.HTML) reports through forms writting the html coding in forms like this can i create an .txt report writing some sort of coding in oracle forms.
    why i am telling this because through vb 6.0 i see generating this type of reports(in .TXT format).
    can i achieve this in forms.

  • Import file txt

    Hi,
    I've one file txt (test.txt) like this:
    AAAAAAAAABBBBCCCCCCCDFFFFFFTTTTTTTTTTTT07/07/08
    more 1000 records
    I'd like to create an "external table" to import this file with these columns:
    ID (from 1 to 9 character) --AAAAAAAAA
    MY_COD (from 10 to 13 character) --BBBB
    MY_DESC (from 14 to 20 character) --CCCCCCC
    FLAG (from 21 to 22 character) --D
    ST_ID (FROM TABLE ST) -- NOT PRESENT IN THE FILE (SELECT ST_ID FROM ST)
    CITY (from 23 to 28 character) -- FFFFFF
    REGN (from 29 to 40 character) --TTTTTTTTTTTT
    DATA_INS (LAST 8 character OF THE FILE) -- if value = 0 then no value in the table
    How can I create my extarnal table to import the file with this format?
    Thanks in advance!

    I tried so:
    create table MY_EXT_TABLE (
    ID varchar2(20),
    MY_COD varchar2(20),
    MY_DESC varchar2(20),
    FLAG varchar2(20),
    ST_ID varchar2(20),
    CITY varchar2(20),
    REGN varchar2(20),
    DATA_INS data
    organization EXTERNAL (
    type oracle_loader
    default directory MY_DIR
    access parameters
    ( records delimited by newline
    badfile 'products.bad'
    logfile 'products.log'
    FIELDS (ID position(1:9) char(9),
    MY_COD position(10:13) char(4)
    MY_DESC position(14:20) char(7)
    FLAG position(21:22) char(1)
    CITY position(23:28) char(6)
    REGN position(29:40) char(12)
    location ('test.txt')
    reject limit unlimited
    but I don't Know How insert data into columns ST_ID and DATA_INS
    Have someone any idea?

Maybe you are looking for