How to justify text in a file?

How do I right justify text in a file? For example:
Checking 500
Savings 50
Loan 300
NetWorth 1000
Insurance 1000
This is how I want my file to be formatted when it is created. Does anyone know of a way to right justify the numbers? I tried to use the "\t", tab but it doesn't work.
Thanks

There is no magical way to do this. Tabs can be treated differently be every editor. You must add spaces between the title and the amount yourself.
If, however, you are going to display the text file in a JTextPane then you could delimit the title and amount with a tab character and then configure the JTextPane to right justify the amount.

Similar Messages

  • How to read text in .kep files

    hey friends,
    how to read text in .kep files
    please help me .
    with regards,
    s.jagadeesh babu

    Hi,
    check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/42a293e35011d29b340000e8a4b41d/content.htm
    .kep files are SapShow Training Files. They can be played with sapshow.exe in Knowledge Warehouse.
    SAP Show is KW Viewer Application. You can use it to see “Kep” files. It can be run in windows without the SAP environment. To run SAP Show (4.6D version) you just need 3 files. First is SAP show executable file, another two are “Sapstg.dll” and “ZLib.dll”. You can easily find these files on internet.
    Regards,
    Niraj

  • How to insert text in existing file.?????

    how to insert text in existing file.?????
    my file contains simple text with numbers of lines having more then 10 MB size and it might be increase up to 100MB.
    i required to seek to spec. position and insert chunk of characters to file without overwriting existing one.
    I tried out with RandomAccessFile class Also.
    Pl. Suggest me way to insert String in existing file.
    Thanks ,
    Timir

    how to insert text in existing file.?????You can't "insert" text into an existing file. You can
    overwrite portions of an existing file or extend one by
    writing past the current end of file.
    If you want to insert text into a file you have to write
    out a new file.

  • How to get Text from (.txt) file to display in the JTextArea ?

    How to get Text from (.txt) file to display in the JTextArea ?
    is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...

    public static void readText() {
      try {
        File testFile = new File(WorkingDirectory + "ctrlFile.txt");
        if (testFile.exists()){
          BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
          String s = br.readLine();
          while (s != null)  {
            System.out.println(s);
            s = br.readLine();
          br.close();
      catch (IOException ex){ex.printStackTrace();}
    }rykk

  • How to justify text vertically in multi-column frame

    How do I justify text vertically in a multi-column frame but within the baseline grid?
    Working at a very busy publication, fitting text evenly in multi-column text boxes are crucial to be done quickly! I understand that it can be done manually by adjusting the tracking in order to force the text to end evenly on bottom. However I'm looking to achieve that result automatically, pretty much like the "Justify Vertically" feature except by doing so it spreads the last column lines out, but I need to keep the text on the grid.

    You can ask over in scripting: InDesign Scripting

  • How to control text for PDF Files in the BI7.0 Broadcaster

    Hi ,
    I am running a web template in the BI7.0 Broadcaster. The output prints in the PDF format. In the precalculation tab I have set up 4 variables(VAR1,VAR2 .. etc) . The main folder where these PDF files get stored I can control the text but dont know how to change the PDF file names which fall into this folder. All the PDF files have the technical name and number(like XXX_00000,XXX_00001 etc.) How can I control the text for these files.
    Thanks,
    Kal

    HI Kal,
    it is not possible to get any influence on the filenames. If you use Filternavigation the filename is generated to be unique.
    best regards,
    kai

  • How to justify text in a TextInput vertically

    So I have a simple question: how can you justify text in a TextInput vertically?

    Yeah, sorry, I should have given more details. Basically I have a TextInput component with a height of 48 so even though it is a one line component it looks like there is a lot of space below the text. The component in question is created dynamically during run-time. So I was tasked with making the text appear in the middle (vertically) of the TextInput. Is this not possible at all? Surely there is some way to do it.
    Here is the Actionscript code that creates the components:
    import fl.controls.TextInput;
    import flash.text.TextFormatAlign;
    var gridArr:Array = new Array();
    var w = 80;
    var h = 48;
    var rowNumber = 10;
    var startX = 5;
    var startY = 30;
    var newTextFormat:TextFormat = new TextFormat();
    newTextFormat.font = "Arial";
    newTextFormat.size = 16;
    newTextFormat.bold = true
    newTextFormat.color = 0x1E1E1E;
    newTextFormat.align = TextFormatAlign.JUSTIFY;
    newTextFormat.leading = 5;
    for (var i:Number = 0; i < 8; i++)
      gridArr[i] = new Array();
      for (var j:Number = 0; j < rowNumber; j++)
       var newCell:Cell =  new Cell();
       newCell.initialize(i, j);
       newCell.cellText.setStyle("textFormat", newTextFormat);
       newCell.cellText.width = w;
       newCell.cellText.height = h;
       newCell.x = (i*w) + startX;
       newCell.y = (j*h) + startY;
       //newCell.cellText.text = "("+newCell.gridX+","+newCell.gridY+")";
       //newCell.cellText.tabEnabled = false;
       gridArr[i][j] = newCell;
    for (j = 0; j < rowNumber; j++)
    for (i= 0; i < 8; i++)
      addChild(gridArr[i][j]);

  • Hi, may anyone tell me how to append text to a file's end?

    every time when i using FileOutputStream.write(byte[]) to add text to a file, the old content would be disappear. but my intention is append, not affect the old content. how to?
    thanx

    assuming it is a text file, read the text into a Reader, read the Reader's contents into a StringBuffer, close the Reader, append to the StringBuffer the new text and write it down to the file.
    regards

  • How to take Text Output in File as It shows error of Printer definition file

    I want to take Output of a report in text file or rtf format so that i could be able to print on a DMP, it is very difficult to take printing on Inkjets with wide information. How can i take fast printing on Dot Matrix Printer.
    Looking forward for a quick & positive response.

    Hi ,
    Text outut dump can be got by running the report with desformat as delimited. Alternatively You can run the Report in character mode and set the desformat=dflt and destype=file. This will give you a simple text output of the report which can then be printed.
    Thanks
    Oracle Reports Team.

  • How to replace text in a file

    Hi everyone,
    I have a txt file and It has some data's. I want to specifically replace a character in the text file. Data's will be like this,
    TT=15
    S1ST=21601
    S1EN=50400
    S2ST=50401
    S2EN=72000
    S3ST=72001
    S3EN=21600
    GNST=00000
    GNEN=00000
    S1B1S=22800
    S1B1E=23400
    S1B2S=28800
    S1B2E=30600
    S1B3S=36000
    S1B3E=36600
    S1B4S=45000
    S1B4E=46800
    In the 2nd line i.e. S1ST=21601, I want to replace 36000 instead of 21601.
    After replacing the specific character, data's should overwrite in the file or appending the file will also ok for me.
    Give me a suggestion. I am using LV 8.2. So plz post your code in 8.2 ver
    Thanks in advance.
    Regards,
    Vijay
    Solved!
    Go to Solution.

    Check this out.
    Edit:- attaching 8.2 version
    With Regards
    Miraz
    Kudos is better option to thank somebody on this forum
    Attachments:
    String.vi ‏8 KB
    String.vi ‏8 KB

  • How to search text in pdf file?

    Hi all
    I have to store the cover of a newspaper that include images and text and then should be able to search keywords in the cover.
    I've read about to store in pdf format and use intermedia text.
    I am just wondering the way to store and to do the search .
    Thanks all

    Hi,
    You need store the PDF document in a BLOB column and create a CTXSYS index type.
    e.g.: (.doc files)
    CREATE INDEX I_DOC ON DOC_TABLE (DOC_COLUMN) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('SYNC (ON COMMIT)');Then you can test typing this SQL below:
    select score(1) from DOC_TABLE where contains(DOC_COLUMN, 'My text', 1) > 0;In my case, i use this index for purpose to search on Word Documents (.doc)
    Maybe this link help you to create an index type using FILTERS, in order to search on PDF files:
    http://www.oracle.com/technology/products/text/htdocs/altfilters.htm
    Cheers

  • How to add text in .ai file and  set position, font, size and colour

    I want to place multiple lines of of text (individually) into .ai file and set size, font, colour and position for each.
    Preferably text should have origin in a single point (rather than be framed)
    Hope anyone can help me out.
    Thank you in advance.

    Here's what's in the Scripting Reference
    Creating and modifying text frames
    // Creates a document with text frames displaying path, area and point
    // text, changes the content of each frame then deletes the 2nd frame
    // create a new document
    var docRef = documents.add();
    // create 3 new textFrames (area, line, point)
    // Area Text
    var rectRef = docRef.pathItems.rectangle(700, 50, 100, 100);
    var areaTextRef = docRef.textFrames.areaText(rectRef);
    areaTextRef.contents = "TextFrame #1";
    areaTextRef.selected = true;
    // Line Text
    var lineRef = docRef.pathItems.add();
    lineRef.setEntirePath( Array(Array(200, 700), Array(300, 550) ) );
    var pathTextRef = docRef.textFrames.pathText(lineRef);
    pathTextRef.contents = "TextFrame #2";
    pathTextRef.selected = true;
    // Point Text
    var pointTextRef = docRef.textFrames.add();
    pointTextRef.contents = "TextFrame #3";
    pointTextRef.top = 700;
    pointTextRef.left = 400;
    pointTextRef.selected = true;
    redraw();
    // count the TextFrames
    var iCount = docRef.textFrames.length;
    var sText = "There are " + iCount + " TextFrames.\r"
    sText += "Changing contents of each TextFrame.";
    // change the content of each
    docRef.textFrames[0].contents = "Area TextFrame.";
    docRef.textFrames[1].contents = "Path TextFrame.";
    docRef.textFrames[2].contents = "Point TextFrame.";
    redraw();
    docRef.textFrames[1].remove();
    redraw();
    // count again
    var iCount = docRef.textFrames.length;
    Your are looking stuff with the pointTextRef.

  • How to highlight text in pdf file programmatically

    I am using below mentioned code to highlight text programmaticaly using VB.net But required text is getting selected but doen't get permanently highlighted. Can anybody help me out.
    Dim gAvDoc As
    Acrobat.CAcroAVDoc 
    Dim myhitlist As
    Acrobat.CAcroHiliteList 
    Dim mypdpage As
    Acrobat.CAcroPDPage 
    Dim acroPageView As
    Acrobat.CAcroAVPageView 
    Dim textSelect As
    Acrobat.CAcroPDTextSelect 
    Dim gPDFPath As
    String
    Dim gApp AsAcrobat.AcroApp 
    gPDFPath =
    "C:\Test.pdf"
    gApp = CreateObject("AcroExch.App") 
    gApp.Show()
    gAvDoc = CreateObject("AcroExch.AVDoc") 
    gAvDoc.Open(gPDFPath,
    "")acroPageView = gAvDoc.GetAVPageView()
    acroPageView.GoTo(1)
    myhitlist = CreateObject(
    "AcroExch.HiliteList")myhitlist.Add(50, 10)
    mypdpage = acroPageView.GetPage()
    textSelect = mypdpage.CreateWordHilite(myhitlist)
    gAvDoc.SetTextSelection(textSelect) 
    gAvDoc.ShowTextSelect()
    gAvDoc.Close(True) 

    Patrick on writting saving code also its not hightlighting the text. Text gets selected but it doen't get highlighted with yellow color...
    Dim gAvDoc As
    Acrobat.CAcroAVDoc 
    Dim myhitlist As
    Acrobat.CAcroHiliteList 
    Dim mypdpage As
    Acrobat.CAcroPDPage 
    Dim acroPageView As
    Acrobat.CAcroAVPageView 
    Dim textSelect As
    Acrobat.CAcroPDTextSelect 
    Dim gPDFPath As String 
    Dim gApp As Acrobat.AcroApp 
    Dim mypddoc As Object
    gPDFPath ="C:\Test.pdf"
    'Initialize Acrobat by creating App object
    gApp = CreateObject("AcroExch.App")mypddoc = CreateObject(
    "AcroExch.PDDoc") 
    gApp.Show()
    mypddoc.Open(gPDFPath)
    gAvDoc = CreateObject("AcroExch.AVDoc") 
    gAvDoc = mypddoc.OpenAVDoc("testing")acroPageView = gAvDoc.GetAVPageView()
    acroPageView.GoTo(1)
    myhitlist = CreateObject(
    "AcroExch.HiliteList")myhitlist.Add(50, 10)
    mypdpage = acroPageView.GetPage() 
    textSelect = mypdpage.CreateWordHilite(myhitlist)
    gAvDoc.SetTextSelection(textSelect)
    gAvDoc.ShowTextSelect()
    mypddoc.Save(PDSaveFull, gPDFPath)
    gAvDoc.Close(True)

  • Editing text from pdf file

    how to edit text from pdf file?

    Adobe Reader does not allow editing the text of a PDF document. You will need to get Acrobat on your Windows or Mac to do that.

  • How can I convert an audio file (speech) into a text?

    Hello everybody!
      Can someone explain how I can convert a garageband file (voice speech) into a text? My Mac is a Mac OS X 10.5.8 version, so I don't have programs such as mountain Lion. I thought to use googlevoice. Is this option available? If yes, how can I use it?
    Thanks.

    Hello, I only find google voice available for Abdroid!?
    http://www.ehow.com/info_10033225_google-voice-system-requirements-android.html
    Some possibilitities, not sure if they have 10.5.8 compatble versions anymore...
    http://atmac.org/speech-to-text-dictation-software-for-os-x
    Some reviews of later Dragon Speak...
    http://www.finetunedmac.com/forums/ubbthreads.php?ubb=showflat&Number=22962

Maybe you are looking for

  • File Folder with a Question Mark Blinking-HELP!!!!

    Its been like a day and half since i last used my macbook, and all of a sudden it won't work. It still turns on but it goes to a white screen and stays that way for about 20 minutes. Then a file folder with a question mark in the middle shows up and

  • Layering photos

    I am trying to layer to photos is CS2 and I am not getting very far. It has been so long since I have done it that the information is gone. I am trying to make one photo a background with the second one, trasparent but still visible on top of it. Eve

  • Can a physical standby propagate data to a logical standby?

    Here is my situation. I have a RAC database that currently has a physical standby (also RAC cluster) for disaster recovery (DR) and I am about to create an additional logical standby for real-time reporting. My customer is asking if I can also create

  • Crystal XI Server & Domino 7.0: Failed Login

    - I'm running Crystal 11.5.3 w/Apache Tomcat and Domino 7.0. - I can run a report against a Domino database from the Crystal Client just fine. - But when I try to run the SAME report from the web (either a preview from Central Management Console or f

  • Problem accessing sessionScope after logout

    Hello, after logout (session.invalidate) I cannot use ADFContext.getCurrent().getSessionScope().put(...) (java.lang.NullPointerException) How to recreate sessionScope? After logout not secured part of our application must be still functioning. Rado