File Reader that can read line by line contents

Hi there!
I would like to ask how to read the content of a file line by line... I need to convert all the contents of a text file into html file.
Example:
3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.
I need to insert <BR> tag after the last character of every line or enclose each line with <LI></LI> tag.
Result
3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.<BR>
3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.<BR>
3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.<BR>
3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.<BR>
OR
<LI>3890001604AM0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003011NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003012NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
<LI>3890003014NZ0 - With Shipping Order DT Actual Transactions ... Joji to provide GMUS.</LI>
How can I do this in java? I am currently using the FileReader class but It seemed that it reads character by character and I am having a hard time in inserting the <BR> tag or enclosing each line with <LI> and </LI> tags.
Anyone who got some ideas in dealing with this problem?
Thank you and God bless.

BufferedReader in = new BufferedReader(new FileReader("..."));
String line = null;
while ((line = in.readLine()) != null) {
  /* use line */
// close reader

Similar Messages

  • What is the oldest PS file type that can be opened in CS5?

    I have a lot of work that was created in PS 7.0. I want to get the latest version. What is the oldest file type that can be opened in CS5?

    You will have no problem with files created with PS7.
    I have files from PS3 that still open!

  • HT4436 What is the maximum file size that can be attached to an outgoing email on my iCloud account?

    What is the maximum file size that can be attached to an outgoing email on my iCloud account?

    20mb, but I would suggest leaving a little space. 15 is reliable.

  • Maximum file size that can be ulpoaded at one time

    Hi All,
    I have an issue in which user is uploading 200 MB file in to KM. But she is getting "IisProxy.dll: 502 Bad Gateway" error.
    I have tried uploading a document and was successfull in uploading 93 MB document and while uploading above this (93MB) i was getting Page cannot be found error.
    I have found in refrences of same as in SAP note 820028 and on
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/25/b0a4f6f2b03a43a727a165a4d6a555/frameset.htm
    Please advice  me what shoud be the maximum file size that can be uploaded at one time.
    Thanks in advance.
    Honey

    Hi,
    By default the maximum file size is 128 MB. You can configure that in visual administrator.
    http://help.sap.com/saphelp_nw04/helpdata/en/05/35e13d8ee48f5ee10000000a114084/frameset.htm
    If you as administrator need to upload a file with larger size, you can use km file repository like etc. and can upload file from OS.
    Regards
    Baby

  • Maximum XML file size that can parsed with c++ XML parser

    Hi!
    what is the maximum file size that can be parsed using the xml parser(version 1) for c++ on linux .
    i'm getting an error(error no 231) when i try to parse an XML file of 3MB on Red Hat Linux 6.1
    Regards
    anjana

    moving to xml db forum

  • Is there a maximum file size that can be converted to pdf

    I have a 448mb tiff that I want to convert to a pdf. However, Acrobat gives me the error that the file is damaged or there is some other problem. Photoshop CS5 opens the file with no problem. It won't convert it to a PDF either.
    The tiff is at 200 resolution. If I reduce it to 60 it will convert.
    Am I trying to do something that can't be done?

    Open in PS and print to the Adobe PDF printer. However, a 448MB TIFF seems huge. At 200 dpi and 24 bit color (millions of colors) that leaves you with a 61inX61in graphic. Even at 600dpi, that is 20X20.
    For us to help you, please indicate exactly how you are trying to convert from PhotoShop. For Acrobat, are you trying to open the TIFF in Acrobat directly? Is the TIFF a single sheet, or multiple sheet? There are a lot of unanswered questions for us.
    One of the limitations on file size is the size of the temporary PS file that is created in the PDF creation process. This PS file is created in the TEMP folder that is limited by MS. So you might try emptying the TEMP folder.

  • [SOLVED] A File Manager That Can Group Folders and Files like Fences

    I want to create a custom desktop environment in Arch Linux and I'm looking for a file manager that is similar to Windows Explorer in terms of features and functionality and can group files and folders into fences like Stardock Fences does for the desktop in Windows.
    If such a feature isn't available then I, at least, want to group both files and folders into individual groups based on custom parameters and not just Date or Size.
    Is there any File Manager in Linux that can fulfill my requirements? If not, is there any file manager which can be extended (by scripting or programming) easily to include the features that I'm looking for?
    Last edited by chosentorture (2014-11-27 19:28:40)

    ANOKNUSA wrote:The important thing to keep in mind here is that Windows Explorer is the foundation for the entire Windows interface. If you've ever seen the exploere.exe process die for any reason, you know what I mean. That's the reason it's able to utilize functionality like Fences. In order to get the same kind of functionality in Linux, you'd need a very similar setup. KDE + Konqueror are what come closest from my experience, since the Plasma interface actually has widgets built in that do what you want, but if you use KDE then you use KDE. Full stop. KDE is highly customizable, but only if you use its environment and parts.
    Nah. I don't wanna use KDE. I've heard that it's the most resource hungry DE out there.
    OK, maybe not something like fences in a file manager but I, at least, want to be able to group files AND folders (within a folder or a directory) under a single parameter and that parameter can be custom and not just pre defined like Date and Size.
    Huh. I'm down to Konquerer, like you suggested, and Dolphin. Can I use either as a stand alone file manager in a custom DE in Arch without using KDE?

  • Error while syncing can not be erased and have gone to all articles and nothing has worked. Have tried to erase my data in the sync file and that can not be done - it says try again another time. What now?

    Have gone into my snyc data file to erase all data - error says that it can not be done at this time. I still have the error while syncing on my bar. Have tried to get a new sync number and that will not change - it goes back to the original how can I start over and try again?

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • HT4101 Is there a maximum file size that can be transferred with the camera connection kit?

    I'm trying to transfer images from my Canon 5DmkII with the lightning to USB adapter and it will not transfer the 9.9MP or 21MP RAW images. Is there a size limit on the file that can be transferred?

    iPad iOS 6 Update - Camera Connection Kit Fix
    http://www.georgewheelhouse.com/blog/2012/10/ipad-ios-6-update---camera-connecti on-kit-fix
     Cheers, Tom

  • Max file size that can be broadcasted

    Hi
    COuld any one let me know what is the maximun file size of the report output that can be broadcasted through information broadcasting? I have a failure in broadcaster when the file size is too large around 6 MB if it is zipped?
    Regards,
    Kishore

    Hi Kishore,
    If you are feeling the file size is large then data in the report must be more. The broadcaster is may be failing because of large instead of size. So the restrict the selections and run the broadcast settings.
    Hope tis helps,
    Regards,
    anil

  • Create exe that can open .llb and edit contents

    Is there a way to create an exe that can open a Labview .LLB and replace certain vi's within it? I'm trying to develop a patching tool that can make upgrades and fixes to existing customer installations without requiring the customer to reinstall the entire product.

    Jim77215 wrote:
    thankyou  for that information. I've been trying to download download VIPM 1.0 but so far have not been successful. The download starts but never gets past the 2% marker.
    I just tested the download and it seems to be working OK.  Are you still having issues?

  • Why does FCE export file formats that can't be accessed in QuickTime?

    I've been slowly but surely figuring out the FCE program.  About 3 months ago I editied a video, exported it and when I clicked on the .MOV file it automatically converted it to a QuickTime compatible file, which I was then able to save and upload to YouTube with no issues.  I have not updated or changed any settings or anything on my computer since then and now when I export a video it shows up as an .MOV file that QuickTime can't access.  Also, when I click on the "more info" button, it sends me to a link with a list of compatible formats and at the very top of the list is .MOV!  I really don't know what to do now.  HELP!
    I just want to be able to view the video I edited and post it to YouTube.

    but when it comes to exporting FCE4 forces 1920x1080 vids into a 1440x1080.
    Not necessarily true.  But may be true if you put 1920x1080 source clips in an HDV (1440x1080) Sequence.  This is a common and often overlooked mistake.  Your camcorder can shoot both 1920 and 1440 video, what settings did you use when you filmed your clips?  What are your FCE sequence settings?  In addition, both of the available 1920 settings are progressive; FCE only supports progressive video if it's 720p.
    All FCE output is based on the characteristics of the Sequence settings combined with any special settings you configure in QuickTime Conversion if you use QT Conversion for output.
    and the results have been similar in all, grainy, pixelated or horizontal lines with movement.
    These are common problems with clips & sequences whose settings do not match.  The combing effects could be a combination of low data rates plus being interlaced (again, check your Sequence settings).

  • FCPX File Formats that can be Imported

    Can someone please tell me what video file formats can be imported into FCPX? I am making a video of footage from many different sources and I need to know if I should convert them first or if FCPX will accept them as they are. For example, flv, mov, etc.

    Audio formats
    AAC
    MP3
    MP4
    Container formats
    3GP
    AVI
    MP4
    These shouldn't be here. You can get away with the compressed audio formats in some circumstances, but will causes problems in other. They also cause major problems when imbedded in video. The video formats work if the media is optimized, which is like saying it's converted. The problem with 3GP and MP4 is that even if they're optimized they don't work well as the usually have compressed audio, which optimizing won't fix.

  • What is the maximum excel file size that can be converted to pdf?

    Currently I am trying to convert a excel file of 37 mb by using pdf generator. And it fails with the exception as java.lang.OutOfMemoryError: Java heap space; nested exception is: java.lang.OutOfMemoryError: Java heap space.
    Waiting someone help! T_T

    Open in PS and print to the Adobe PDF printer. However, a 448MB TIFF seems huge. At 200 dpi and 24 bit color (millions of colors) that leaves you with a 61inX61in graphic. Even at 600dpi, that is 20X20.
    For us to help you, please indicate exactly how you are trying to convert from PhotoShop. For Acrobat, are you trying to open the TIFF in Acrobat directly? Is the TIFF a single sheet, or multiple sheet? There are a lot of unanswered questions for us.
    One of the limitations on file size is the size of the temporary PS file that is created in the PDF creation process. This PS file is created in the TEMP folder that is limited by MS. So you might try emptying the TEMP folder.

  • Maximum file size that can be generated with an FTP adapter

    Hy
    At our 'Vehicle Order Management'-project within Toyota Moter Europe we process in- and outbound interface by using FTP adapters in interconnect. For certain outbound interface we generate semi-large amount of files >9MB. Due to parameter setting this amount can be bigger. What is the maximum amount of files that interconnect can generate and how is this being determined?
    Is the maximum size determined by the filesystem or setting in interconnect or ... Please point me in a direction where to find this information.
    Kind Regards

    WELCOME TO Digitizing Group
    You seem to be looking for quality machine embroidery designs. If you are looking for embroidery digitizing, then
    digitizing-group was exactly the right place. we, a team of digitizers with more than 10 years experiences would like to
    offer you the best service with a very reasonable price. We provide 24-hours service 7 days a week, and you will
    receive your completed file within 24 hours after sending us your artwork. Certainly the rush tape can be provided in
    just a few hours, and all with the same flat rate!!!
    . Extremely fast turnaround time
    . Competitive Pricing
    . Available Format
    . Easy payment - we take company check, Visa, Mastercard, T/T, Western union.
    . High quality design that will keep your customers bring continuous order.
    We would like you to try our service. We are confident that you will be impressed by our quick turnover, excellent
    digitizing quality, and low prices.
    And that will help you succeed with keeping your customers coming back. Therefore we have always focused on how
    we can improve the quality and serive. please contact us,
    Tel: 1-801-938 6699

  • Is there a way to save a file in indesign that can be edited outside of adobe?

    I am creating a menu for a local pub landlord and he has requested that the menu be easily editable, by him, as to not keep asking me for any slight changes.
    Is there any file format that can be easily edited outside of indesign. I know there is the Acrobat Pro which would edit a PDF and could solve this problem, but he is unwilling to spend money on any software.
    I am designing the menu in indesign with text and images.
    Any help would be appreciated.
    Thanks
    Liam

    Jus a clue for u
    [email protected]
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    auto_create_save_in_for_loop_240403.vi ‏26 KB

Maybe you are looking for