How to generate a specific size txt file?

Hey guys,
I'm working with a system wich reads txt files. These files have to be 100kb of size.
Is it possible to generate specific size txt files in abap? I'm trying to do this but i cant get exactly 100kb.
Best regards

[Character Streams|http://java.sun.com/docs/books/tutorial/essential/io/charstreams.html]

Similar Messages

  • Hi How to generate vendor specific XML files

    Hi all!
    This is satish. I have  aquestion as:
    <b>How to generate vendor specific XML</b> files for deploying in Web Application server like weblogic9.0
    Please help me!
    Thanks in advance!!!

    Hi Satish
    AFAIK there are nwds plugins where you can convert Weblogic / jboss specific were you can convert it in to  SAP Web AS specific descriptor files .
    you can find these here http://media.sdn.sap.com/html/submitted_docs/sap_j2ee_migration_kit_webpages/external_docs/SAP_J2EE_Migration_Plugin.zip
    I am afraid there are no such plugins avaialble. You have to do the conversion of these vendor specific file manually or you will have to search for eclipse plugins which can do this
    Hope this helps. please do not forget to reward points
    regards
    rajesh kr

  • Hi How to generate vendor specific application file I am using Weblogic9.0

    Hi
    I have a scenario like XI->J2EE application. For my J2EE application am using Weblogic9.0 can anyone tell me how to generate weblogic specific XML, which i will use to deploy on application server. I am n newbie to Weblogic server9.0
    Thanks

    Hi
    please have a look at ths link
    http://edocs.bea.com/wls/docs90/ejb/index.html
    http://edocs.bea.com/wls/docs90/ejb/implementing.html#1195909
    http://edocs.bea.com/wls/docs90/ejb/DDreference-ejb-jar.html#1107234
    Hope this helps, <i>please mark points for helpful answers</i>
    regards
    rajesh kr

  • How to save in CSV or TXT file the Powershell script output?

    Hi,
    I am not sure how to expot this to csv/TXT file, should I use export-csv "c:\test.csv" ?
    my code:
    $site = Get-SPSite "http://tst.pg.com/sites/tsta"
    Write-Output("`n" + $site.URL)
    $myweb = $site.AllWebs | where {$_.url -eq $site.url}
    Foreach ($list in $myweb.Lists) 
    if($list.BaseType -eq "DocumentLibrary")
          Write-Output("")
    Write-Output("Doc Library Name:" + $list.Title)                
    Write-Output($list.roleassignments | ft Member,RoleDefinitionBindings -auto)
    }$site.dispose()

    Hi there - If you just want to dump the output as a txt file, how about the following?
    .\yourpowershell.ps1 > output.txt
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • Ur temprory tablespace full . how u resize or increase size of file .

    ur temprory tablespace full . how u resize or increase size of file .u have no more space .how u slove

    Answers in your duplicated thread: Some inter view Questions Please give prefect answer  help me
    You can get all the answers at http://tahiti.oracle.com.
    You understimate job recruiters, a simple crosscheck is enough to discard people with experience from people who memorize 'interview answers'.
    Don't expect to get a job just because you memorize answers for 'job interviews', get real life experience.

  • How to retrieve IndividualStrings from a txt file using String Tokenizer.

    hello can any one help me to retrieve the individual strings from a txt file using string tokenizer or some thing like that.
    the data in my txt file looks like this way.
    Data1;
    abc; cder; efu; frg;
    abc1; cder2; efu3; frg4;
    Data2
    sdfabc; sdfcder; hvhefu; fgfrg;
    uhfhabc; gffjcder; yugefu; hhfufrg;
    Data3
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    val1; val2; val3; val4; val5; val6;
    i need to read the data as an individual strings and i need to pass those values to diffarent labels,the dat in Data3 i have to read those values and add to an table datamodel as 6 columns and rows depends on the data.
    i try to retrieve data using buffered reader and inputstream reader,but only the way i am retrieving data as an big string of entire line ,i tried with stringtokenizer but some how i was failed to retrive the data in a way i want,any help would be appreciated.
    Regards,

    Hmmm... looks like the file format isn't even very consistent... why the semicolon after Data1 but not after Data2 or Data3??
    Your algorithm is reading character-by-character, and most of the time it's easier to let a StringTokenizer or StreamTokenizer do the work of lexical analysis and let you focus on the parsing.
    I am also going to assume your format is very rigid. E.g. section Data1 will ALWAYS come before section Data2, which will come before section Data3, etc... and you might even make the assumption there can never be a Data4, 5, 6, etc... (this is why its nice to have some exact specification, like a grammar, so you know exactly what is and is not allowed.) I will also assume that the section names will always be the same, namely "DataX" where X is a decimal digit.
    I tend to like to use StreamTokenizer for this sort of thing, but the additional power and flexibility it gives comes at the price of a steeper learning curve (and it's a little buggy too). So I will ignore this class and focus on StringTokenizer.
    I would suggest something like this general framework:
    //make a BufferedReader up here...
    do
      String line = myBufferedReader.readLine();
      if (line!=null && line.trim().length()>0)
        line = line.trim();
        //do some processing on the line
    while (line!=null);So what processing to do inside the if statement?
    Well, you can recognize the DataX lines easily enough - just do something like a line.startsWith("Data") and check that the last char is a digit... you can even ignore the digit if you know the sections come in a certain order (simplifying assumptions can simplify the code).
    Once you figure out which section you're in, you can parse the succeeding lines appropriately. You might instantiate a StringTokenizer, i.e. StringTokenizer strtok = new StringTokenizer(line, ";, "); and then read out the tokens into some Collection, based on the section #. E.g.
    strtok = new StringTokenizer(line, ";, ");
    if (sectionNo==0)
      //read the tokens into the Labels1 collection
    else if (sectionNo==1)
      //read the tokens into the Labels2 collection
    else //sectionNo must be 2
      //create a new line in your table model and populate it with the token values...
    }I don't think the delimiters are necessary if you are using end-of-line's as delimiters (which is implicit in the fact that you are reading the text out line-by-line). So the original file format you listed looks fine (except you might want to get rid of that rogue semicolon).
    Good luck.

  • How to extract data from a .txt file & send it to a serial port automatically

    Hi all
    I'm a final yr B.Tech student. I am new to the entire LABVIEW thing. But i hear its really good. My dept. in collge has purchased labview & i'm tryng to use it
    As i'm new to labview , i need help plz
    " I want to open a .txt file (in my PC) & transmit all the contents of the file via serial (COM) port to an 89%! microcontroller. Also i want to read the feedback messages from the microcontroller thru the serial port & save it to the same file in the PC.All this must be done automatically. ie, no manual intervention after execution starts"
    Kindly help me as i'm stuck here & unable to proceed further with my project

    here is my 20min try without debugging (needs a rs232 and loopback connector )
    use the probe and highlight the dataflow to see how it works.
    as always:  there are many ways to solve your problem
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    read write file to RS232.vi ‏69 KB

  • How to read data from a .txt file?

    currently i'm under study on java
    while need to extract data from a hyperterminal or .txt file
    could any one help me in this problem.?
    as in txt or .ht got their own overhead .( or what u call it. tt identify the file type)
    so how to open it and read data one ah?
    thanks all.

    Here's a code snippet 4 u
    String sInput = null;
    FileInputStream sStream = new FileInputStream("yourTxtFile");
    BufferedReader fileIn = new BufferedReader(new InputStreamReader(sStream));
    while((sInput = fileIn.readLine()) != null){
    System.out.println(sInput);
    hope this help
    *-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to know the specific size of a field in oracle table

    Hello,
    oracle 11.2.0.3 on redhat
    i have three tables with same structure, table0, table50, table100:
    create table table0 (id number, shipment RAW(2000), options RAW(2000));
    i inserted 10000 rows in each but with some differences:
    table0 has 10000 id, but shipment and options has null values
    table50 has 10000 id, but shipment and options has only 5000 rows, the other 5000 are null values
    table100 has 10000 rows of id, shipment and options. No null values.
    I want to know the specific size of each column, also the size of each row, to know the exactly size of the field.
    for example:
    row 1, column options of table100 has "asdfasdfagasdgasbabsdgoasdpgiahnwe1129u412094u12"
    row 2, column options of table100 has "a".
    both are raw datatype, but i think its space will has different size (bytes), how to know it? any query?
    I found this query:
    select owner,tablespace_name,segment_name,sum((bytes/1024/1024)) Bytes
    from sys.dba_extents
    where owner in 'MAA' and segment_type='TABLE' and segment_name ='TABLE00'
    group by tablespace_name,owner,segment_name
    order by owner,tablespace_name,segment_name, bytes; but i think it isn't my solution.

    thx mr. sb92075
    i tried with vsize too but same result:
    with table50
    SELECT VSIZE(OPTIONS) FROM TABLE00;
    VSIZE(OPTIONS)
                 1000
                 1000
                 1000
                 1000
                   *with table100
    SELECT VSIZE(OPTIONS) FROM TABLE100;
    VSIZE(C_ELECCION)
                 2000
                 2000
                 2000
                 2000
                      *it's the same size for 'a' like 'abcasdfjañldngaosnbaposnbpaosuqroiwejrklasndiaoshbaposdjgajs'?? It's hard for me to believe.
    data is saved in blocks, a extents is a contiguos number of blocks and a group of extensions are segments. If you insert some text in a table field, Oracle create a extension and insert there the data but depend the bytes you insert Oracle will create one or more extents. How to know this specific space in that field?

  • How do I change the size of file menu's and tool icons in Photoshop' opening page.

    How do I increase or change the size of file menu's and tool icons on the opening page/worksheet of Photoshop? The File Menu drop down commands read properly at a comfortable size. I am not sure how I accomplished this, but everything I have tried has no effect on the other page items.

    Hello, you can change most of Photoshop's interface text by going to preferences>interface>UI font size.
    For the size of the top menus and the whole interface, there is no function to do that for the moment. I suggest to vote on this thread: http://feedback.photoshop.com/photoshop_family/topics/problem_with_hi_res_monitors

  • How continuously write data to a txt file

    hello, 
    first of all, sorry for bad English, but I have a problem to continuously write data to the txt file.... I have one 2D array with values of some function and based on 2 sliders (values of the sliders) i want to interpolate value using bilinear method... and after that value of the sliders, interpolated value, and value of the nearest points i wish to write to txt file ... for every 2-3 seconds perhaps it would be ideal to be formated as :: 
    x   y   f     f1   f2   f3   f4
    but... first i have problem with writing data, because every time it deletes old data and just write new one and it's not horizontal... I'm very very new at this (it is obvious) and any help will be very appreciative  
    thanks  
    Solved!
    Go to Solution.
    Attachments:
    Proba.vi ‏21 KB

    Hi there,
    May I suggest you start with the LabVIEW tutorial?  Or perhaps this one?
    I say that because 1) you said you're new at this, and these tutorials are great for getting started; and 2) you don't seem to understand the concept of dataflow.
    A structure, such as a loop or subVI or function, cannot start executing until it has all of its inputs available.  Therefore, the loop which contains your file write (bottom loop) cannot execute until your top loop is done executing, because it depends on inputs from your top loop and those inputs aren't available until the top loop is finished.  Thus, your file will contain only the data from your final top loop execution.  You might be thinking that your loops are executing in parallel.  They are not.  Your file loop is executing after your data loop has finished...that is to say, your file loop executes exactly once, after you press your stop button.
    You can do two things here to fix that:
    1.  You can move your file write into the top (data) loop. (probably easier for now)
    2.  You can use a queue to transfer the data from your top (data) loop into your bottom (file write) loop. (more complex, but a better idea in the long run)
    One other thing.  Move the "open file" function outside the loop.  Opening and closing the file in each loop iteration will cause problems.  Open the file once.  Write to it in each loop iteration.  Close it when you're done.  Like this:
    Note that this is not complete code...you need to provide the data to write.  This is just to show you how to set up a continuous file write.
    Ok, start with the tutorials and we'll go from there. 

  • How to Generate Report Output to Flat File

    Hi All,
    how to generate a report's output to a flat file(fixed length file).
    Thanks and appreciated.

    Hi
    In the object navigator u have a node called builtin packages. in that you can see text_io package.and in help you can have a detailed exaplination abt that. if your version is 9i then search in web for webutil program which also does the same work.
    Thank you
    Sasi

  • How to remove balnk line on txt file??

    Anyone can help me please?
    Tks,
    Elber.

    may be this helps??
    How to Delete a line from a file?
    http://unix.ittoolbox.com/groups/technical-functional/shellscript-l/removing-last-line-from-a-txt-file-798004

  • How to generate XSL for an XML file to use it for XSLT transformation -SSIS?

    Hi All,
    Can anybody please help me to generate XSL for my attached XML file?
    I need to use the XSL file for XSLT transformation.
    Thanks & Regards,
    Sri

    Hi Vibhav,
    Thanks for the response.
    I am aware of the process but not sure how to generate XSL file. 
    Can you please refer me to any tool which can convert XML to XSL? or please can you transform my simple XML to XSL?
    Thanks & Regards,
    Sri

  • How to draw a specific size circle?

    I have to make a 7cm diameter in a homework i'm doing in pages, but i can't find a way to make it in this specific size. Can someone tell me the way?
    Thanks,
    Mateo

    As attached.
    Perhaps it would be better to learn the ABC of Pages

Maybe you are looking for