Ignoring white lines in a file parsed with Scanner

I've a little problem...
How to ignore white lines in a file (for configuration informations) parsed with Scanner???
My parser can ignore #(comments) and other thing, but not white lines...
oooo
fucking little problem!!!
Thank for solutions...
euronymous

Wrong assumption. Scanner doesn't return lines, it returns tokens separated by delimiters which are whitespace by default, so by default it will already ignore blank lines.
If you are using custom delimiters, make sure to include space, tab, and newline (\r \n and \f) as delimiters.

Similar Messages

  • White Lines Across Powerpoint files converted to PDF

    I have a number of PDF files that were created from Microsoft Powerpoint presentations on a Windows PC. The Preview inspector says they were created with Acrobat Distiller 8.2.2. Until recently, these PDFs looked 100% correct when viewed in Preview or Safari. Now, though, they have horizontal white lines across the pages. There are 6 white lines on each page, evenly spaced, each about 1 pixel in height. They stay at 1 pixel in height even when I zoom in/out on the document. At some zoom levels (100% being one of them), the area above and below some lines will become misaligned. When viewed with Adobe Reader 9, the lines are not there but the misalignment is (though it is not exactly the same as in Preview). Unfortunately, I can't say when this started happening other than it was fine in September (2010) and isn't this afternoon (Nov 22, 2010). It happens on a coworker's Macbook Pro as well as my iMac so it is not something unique to my Mac.
    Anyone else seeing this? Any ideas as to how to fix it?

    Hi, I am having this problem also on my iMac. Some of the images have the lines and some of them don't. When the PDFs are printed, the lines don't show. My problem is that these PDFs will be linked to on a website for the clients to print, and they will seem them with the lines. They are pretty unsightly, and my boss has put this into my lap to figure out, since I am the designer. Did you ever find an answer for this? I don't know where else to turn, since this company is insisting on using Pages, rather than something like InDesign.

  • Ignore last lines in a file using FCC

    Hello,
    can we ignore last two line in a file, when we are using FCC.
    in a file uploaded with some special char like $#@..... due to this mapping getting failed.
    i want to ignore last two lines in a file.
    Regards,
    Chinna

    Hi Chinna,
    you can also use replaceString funtion to remove all special character and then use result for date transformation like shown below.
    Hope it will be helpful for you.
    Regards
    Jitender

  • Cannot get into mac. I get a white screen and flashing file folder with question mark inside. What can I do?

    2012/13 MacBook Pro froze up, so I did a hard shut down. Now, when I try to start up, it makes 3 unusual beeps, then I get a white screen. After a couple minutes, a flashing file folder with a question mark appears and remains. What is wrong and what can I do to fix it.

    Three beeps usually means a RAM or RAM slots problem. The Question Mark means there is no bootable system found.
    A flashing question mark or globe appears when you start your Mac
    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark or globe appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    b. Boot drive's directory has been corrupted - Repair with Disk Utility.
    c. Critical system files are damaged or deleted - Reinstall OS X.
    d. The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • All i get is a white screen and a file icon with a ? in it

    I turn on my computer and my screen turns white and then a folder icon with a ? just starts blinking .... how do i fix it ...what happend?

    I had that the other day. There's a kb article here: http://support.apple.com/kb/TS1440
    In my case, I used the OS X install disc, loaded up Disc Utility to verify the disc and then went to Startup disc to make sure that the HD was selected. Rebooted and all was well.
    Still don't know what caused it but those steps seemed to fix it. Hopefully it will fix yours too!

  • Gradient white lines in .eps file

    Hi there,
    I designed a vector in Adobe Illustrator CS6, but when saved as an .eps file, white vertical lines appear in my gradient.
    What is happening? I've tried rasterizing the vector at 300 PPI with anti-aliasing, but the edges look jagged (but I really want to keep it as a vector anyway)
    Does anyone have any idea what I could do?
    I don't know whether it's relevant, but I'm using process colours (but that's only because I couldn't get spot colours to work properly).
    Thanks

    AlvinKeegan wrote:
    The lines appear if I place the file in Adobe Photoshop. If I open the EPS file in Adobe Illustrator though, the gradient is as smooth as a baby's behind.
    of course it is. When you open this EPS in Illustrator, you don't really open an EPS, but the AI part Illustrator embedded into the EPS file in the first place.
    Photoshop is not a suitable tool for "checking" an EPS file
    EPS ist not suitable for most modern workflows either. In case you really need this for transferring your logo to Photoshop (or any other Creative Suite app), simply save an AI file (with PDF compatibility).
    In case you need the EPS for exchange with other software, please tell us which options you chose on saving the EPS.

  • Ignore blank lines in text file using number format exception.

    hi.. does anyone know how to ignore a blank line and move on to the next line? the text file contains:
    2
    bla bla bla
    112.4
    222.5
    ble ble vle
    115.5
    123.2

    The problem with trim() is that it only trims spaces (0x20). In a source code file, "blank" lines are as likely to contain TABs as spaces. I would recommend something like   if (line.length() == 0 || line.matches("\\s+")) If the inefficiency of matches() becomes a problem, you can use a pre-compiled Pattern object, or roll your own isItWhitespace() method.

  • Unable to re-read file created with scanner

    Hello,
    I've made a combinated document in PDF with scanning of 4 documentd and save-it on the cloud ( dropbox). My installation is in french.
    I would like to  simply read my document with adobe acrobat pro 9 and here is the message instead of opening document :
    "Le document « laneffe *******.pdf » n’a pas pu être ouvert. Acrobat ne peut pas ouvrir les fichiers au format « Adobe PDF document ».
    Just for the fun I can read (only naturally) this document with the view application of mac osx mavericks
    Thanks for your ideas and perhaps solutions
    Michel

    Same issue/message with Acrobat Pro v11.0.04 + MBA osx Mavericks (French)
    After combining two images into a pdf file using Acrobat I'm unable to open it with Acrobat - opening fine with Apple viewer.

  • I need a method for ignoring empty lines

    Hi to all,
    i need a method for ignoring empty lines when my program reades a file like that
    start of file
    print "xoxox"
    //ignore this line
    println"xaxaxa"
    //ignore this line
    end of file
    cheers

    Are you having trouble detecting these empty lines? Or are you having trouble not processing them once you've detected them?
    For the first case, you neeed to define "empty." I assumed it meant "containing no characters," and that's what the first solution shows. Your example looks like "empty" means "starts with comment characters."
    For the second case, you ignore them by just not doing anything: read a line
    if (it is not empty) { // by whatever criteria you define for "empty"
       do something with it
    }

  • Can't move files - white circle with white line through it?

    OsX 10:4:10
    Suddenly I cannot move files from one drive to another, or from drive to desktop. Recently updated everything.
    White circle with white line through it appears.
    Network awaiting news footage. I'm stuck. What might this be?
    Any help would be most appreciated,
    Ben

    Hi megagram & dreed2,
    Thanks for staying with me on this.
    USB drive and errant file both have 'read and write' clicked. There is no 'ownership' choice in the info pop-up.
    Nor is there 'Ignore ownership on this volume' choice for the USB drive.
    I'm using an administrator account. I created a 'root' account, but it didn't seem to have any effect - didn't fix the problem. (I don't like messing around with 'root' account stuff.)
    I'm not running as a 'client in a Mac OSX Server environment'. Just as an 'admin' with the one tower and a rotating bunch of external drives (projects).
    I did a work-around for now ... shipped the 'unmoveable' file out to an ftp site (it would allow me to do this), and I haven't heard if the downloaded file is causing any problems on the other end (yet).
    If I come across a solution I'll post. It may have something weird to do with that funky drive (now returned to its owner), and me creating this particular file that same day as the funky drive was giving me problems. (Though the file was not ON the drive.)
    And the (almost new) computer did go down for a day last week ... would not reboot ... took it to the shop, nothing wrong with it, brought it home, it's been working fine ever since. Go figure.
    Thank you kindly for all your suggestions...
    Ben

  • Why are white lines appearing in images in PDF files but not the original InDesign files?

    Hi folks!
    Let me just start out by saying that I'm not a graphic designer and have basically no experience with graphic design programs, aside from the little futzing around I've tried to do with InDesign. My company (which publishes a monthly magazine) has decided that it would be a great idea to get the files to our magazine from the graphic design firm that actually handles the production end of things so that we may offer back articles, etc., and modify them as needed. Somehow I've gotten assigned the task of handling this. However, I've encountered some problems along the way. The graphic design firm uses Quark, we own InDesign (CS3) and use Markzware to convert the files. Most things seem to work okay in this arrangement but I'm having problems with the images in the file when I create PDFs. Although the images look fine in the InDesign files (and are of print quality), when I create PDFs of some files, thin white lines appear over the images in the PDF document. I asked our graphic designer about this but she has no idea, and she isn't very familiar with InDesign.
    So, my question is, where are these lines coming from and how do I stop them from appearing? As a reminder, I'm not a graphic designer and am fdairly ignorant in design software terminology. If you're kind enough to try to help me with this problem, I'm going to require an explanation in plain English. Basically explain it to me like you would to a 10 year old.
    If anyone can help, I'd greatly appreciate it!
    Thanks in advance,
    Lynn

    I think Bob was typing too fast and meant to ask if you were distilling, not to tell you distill.
    Distilled PDF (you get distilled by printing to PDF rather than exporting) always flattens transparency, which is what makes those white "stitching" lines.
    You can make the stitching disappear on screen by turning off smoothing in the Acrobat prefs, and it shouldn't print on a press, but it sounds like you may be doing the output on a digital machine and it's likely to show on the lower resolution output.

  • White lines generateds in a File Adapter when using variable substitution.

    Hi all,
    I have been a problem in File generated by XI, my File Adapter is using variable substitution with reference to a field of my message type. Because it, the files generated has white lines in top of file.
    What can I do to not apears these lines ?
    Thanks

    Regis,
    Try to give a more detailed description of your problem otherwise I don't know who's gonna answer...
    Alexx

  • Print Booklet with White Lines Issue

    I have searched low and high on this forum and the internet for a solution, with no luck so far. I'm hoping that you InDesign gurus can help!
    Whenever I use the 'Print Booklet' feature to generate a booklet from my InDesign CS5 brochure, the output has thin white lines in various areas that should NOT be there. The lines mostly show up in areas where I am using transparent PNG files, but there are no effects on the layers for these images.
    This is an odd problem because:
    In the original source while viewing it there are no lines
    I can print to high resolution PDF using the standard print features and everything is 100% perfect, no lines
    I can export each page as a high resolution JPG and everything is 100% perfect, no lines
    The lines ONLY appear when I use the "Print Booklet" function. I have tried many things that have not worked:
    Changing virtually every setting in Print Booklet to something else, lines are still there
    Printing to a PDF directly from 'print booklet' with many different settings, lines still there
    Printing to a PS file from 'print booklet', lines still there
    Printing to an XPS file from 'print booklet', lines still there
    I've put up an example showing you two different outputs. The one on the left is a regular JPG export, the one on the right is the Print Booklet export. Click on the images to see a larger example:
    http://www.seenbest-web-design.com/techclub/?p=1282
    I've seen other people post about this problem elsewhere going as far back as CS3, but have never found a cause or a way to fix this. Some people have said 'it's just a rendering issue in Adobe Reader, and the lines will not actually appear when you have it printed'. However, when I go to print from my PDF file to my printer the lines are there in the output. They are also there when I print to a XPS document and view the image on the screen.
    Any ideas?

    It's a transparency flattening artifact called Stitiching and basically, becasue youare printing to PDF you're up the creek. It only happens when transparency is flattened, but printing to PDF is a distiller function, and distiller doesn't support live transparency.
    The best way around this, I think, would probably be to use an imposition script to impose a copy of the file, then export spreads from that using Acrobat 5 or higher compatibility, or, if you need to do this a lot, look into a PDF imposing plugin -- Quite Imposing gets good reviews here.
    If you want to go withteh script, may favorite is Dave Saunders BuildBooklet javascript (http://pdsassoc.com/downloads/Buildbooklet.zip) but it has some limitations, no creep, 2-up saddle stitich only, and no objects crossing a spine. Slightly more sophisticated is his MakeBooklet script (Dave's CS3 Booklet Script) but it is still a lot less versatile than an impostion plugin.

  • White lines fixed with art optimization - Is it possible to copy with that setting?

    I've seen threads about the white lines you get on the edges of objects due to the anti-aliasing in Illustrator, and I found that when exporting, you can remove them by setting 'art optimized' in one of the options there.
    For those who don't know the white line issue:
    Sometimes, when Illustrator blends the pixels around an object, it puts a thin white line around it that always appears 1 px thick at any zoom level.
    It's not really there, and when printed it vanishes. Trouble is, even when exporting the document, or copying objects into other software for screen use, it's still there.
    A lot of people think the white line is a tiny gap, but it's not.
    People also tend to tell you it's because you have two objects butted up against one another. This is also not true. The white line still occurs even on overlapping shapes.
    People will also say it's when two shapes on top of each other follow the same path. Again, not true. The white lines still show up even when you only have 1 object following a particular path.
    My issue is that I rarely export an entire document at once, but tend to copy elements of it into Photoshop. When I do so, the white lines travel with it, and become permanent. Even on a .jpg, .png, or .gif image file, the lines are still visible.
    What I want to know is, can I copy objects from Illustrator using art optimization?
    Or is there any other way to copy them without taking those white lines with me?
    I know I can get rid of them by turning anti-aliasing off, but then everything looks really pixellated, so it's not much better.
    Plus, anti-aliasing doesn't actually fix the problem, it just hides it. Even with the setting off, when I copy affected objects to Photoshop, the white lines reappear in Photoshop.
    And please don't bother to reply explaining to me what the white lines are, or how to get rid of them, or how to lose them in exporting. I already know all that.
    Notes:
    I'm running Illustrator CS6
    And Photoshop CS6

    Weirdly, yes. That does work.
    The only problem is that I can't then resize it in Photoshop in the same way as a smart object. I'll just have to know what size it needs to be before I rasterize it.
    But for now, it's a solution that's workable. Thanks! ^.^

  • Screen with bizarre white lines when PB heats up: Has it been fixed ?

    Some time ago (actually 2 years or so) there have been many complaints about Powerbook monitors running bizarre with white lines all over, especially when the PB is getting warm. There has been evidence that the problem is due to difficulties with the plug connecting the screen to the mainboard (some faulty insulation).
    I wanted to ask if meanwhile there has been found a permanent solution. I have this problem for 3 or more years now. It gets better when I fix the plug from time to time but it keeps on coming and is really disturbing (though it doesn´t affect any other monitor connected to the PB (it´s only the internal screen).
    Thanks for your help
    Wolfgang

    I know, this thread is horrible and consists of many different problems but there IS definitely a problem with faulty screens which has nothing to do with ranting.
    I do own my PB since 6 years now and still love it like most of my Apple products within the last 20 years (besides my G5 who decided to give up with a motherboard failure 3 years after purchase).
    The problem is, that Apple (unfortunately) kept ignoring the problem so that a lot of false presumptions, ideas and ranting occured.
    I can only speak for me and MY PB.
    Since year 2 after purchase always when the PB got warm (i.e. the fans chimed in) the built in screen showed irregular lines which made it unreadable. When closing the screen for a while and then opening it again, the problem disappeared for some minutes only to reoccur after a while.
    The interesting thing is that if you connect an external monitor or beamer they don´t show any problem at the same time when the internal screen gets unreadable (this saved me many presentations) so the problem is most likely to be somewhere between the motherboard and the INTERNAL screen (which makes the connector the most likely cause. Insulating the connector with insulating tape made the problem to disappear for a while but it didn´t help in a long term.
    That´s why I was asking if the problem has been solved meanwhile as I have been resignating more or less (have oredered a MacBook Pro anyway as a substitute for my passed away G5 anyway leaving the PB to my wife ).
    Anyone can comment on this?
    Best regards
    Wolfgang
    Message was edited by: Wolfgang Fogel

Maybe you are looking for

  • Wire transfer in Automatic Payment Programme

    dear friends do any body know how  to configure wire transfer in APP Pls, let me know it urgent for me if there any documentation on it it will be more helpful for me plz do it fast [email protected] awaiting for you kind replys i want detailed confi

  • G/L Account can't find in T-Code OAMK

    I had created a G/L account by T-Code FS01, and set Account group : AS Assets accounts, Recon. account for acct type : A Assets. When I used T-Code OAMK to delete reconcilation Ind. for all accts, but I can't find new G/L account In the "Change contr

  • Music via MIDI ... anyone?

    I've created a number of MIDI projects in Java. These are fun music education games that kids really like to play. I want to rewrite them in Flash or Flex (obviously because Java's Swing interface is pretty bland, and because Flash, Flex and ActionSc

  • How to create a .ear file from my application ?

    Hi, I am using JDeveloper 10g.I made an application called Myapp .Kindly guide me how I will make a .ear file of the application for deployment purpose.

  • Color behind text transfer to epub

    I put in the color behind the text and when it transports to epub, there is no color. If I rasterzie it then the font changes and it is smaller than what I put in.  I am using articles and attaching the images to the text. This is for a children's bo