Cant get my head round delimited files

hey guys i have been trying to sort this out for ages but i just cant get it to display correctly just wondering if any one could help
Create a comma delimited file for example:
     Smith, Jon
     Bloggs, Fred
     Jones, Anne
Then simply read each item of data and display it to look like this:
     Jon Smith
     Fred Bloggs
     Anne Jones
i have made a .txt files with the names in but i cant get them to display like it ask me to i can get rid of the comma and move the text around but i cant get it in that order

i have displayed them so that they display on the same line just havin trouble swaping them around
import java.io.File;
import java.util.Scanner;
public class URLScan {
     public static void main(String[] args)throws Exception {
          String url;
          Scanner filescan, urlscan;
          filescan = new Scanner(new File("url.txt"));
          while(filescan.hasNext()){
               url = filescan.nextLine();
               System.out.println("URL: "+url);
               urlscan = new Scanner(url); urlscan.useDelimiter(",");
               System.out.print("\f"+urlscan.next());
               System.out.println("\t"+urlscan.next());
               while (urlscan.hasNext()){
}

Similar Messages

  • An assortment of problems that I cant get my head round.

    Okay, so Im making a basic game for a college project, and I have a few problems that really just dont make sense to me or I simply dont know how to do.
    Heres a zip of the .fla and as3 files:
    http://www.mediafire.com/?7v2wfcgd47h7xv3
    The first issue I have is that where the player spawns, a sort of invisible block is left and the player is unable to enter that area. This also happens when the trigger block is destroyed. I'm sure I've used the same code before for the same idea and it worked, but alas, this doesnt.
    As you'll notice, currently the enemy code is quite complex. I was wondering if theres a way to put some code in the enemy class and set it so that if it hits a waypoint to simple reverse its direction
    The third point is that, the current graphics used are obviously horrible and will be invisible when the final game is made. How do i make it so that when the blockNorm object is made, it makes say blockNormSkin at its exact location. It would be good if this is inside the blockNorm class so that it does them all automatically and I dont have to code them all indivdually.
    Relating to the above point, instead of that I tried just drawing on the actual graphics I wanted to use. This resulted in the player object not working properly at all. (I know this is vague, and so if you have any idea why this happened, say and I'll try post an example of it).
    I think thats everything, but I may update the post later if I remember anything. I know this is a lot, so any help about any of the points would be a great help. Thanks!

    Hi
    First, an important note dont use method names with uppercase as the first letter only for class names, like that:
    class ShareInPortfolio - is ok
    void Addshare(ShareInPortfolio s) - should be: void addShare(ShareInPortfolio s)
    there is a convesion for the JAVA language.
    Second: unitTest method is a part of a class, so make it static method and rename the name from UnitTest to unitTest and call it like this: CLASSNAME.unitTest
    Ohad

  • Getting BAPI header and library files

    Hi,
    I'm going to develop a job scheduling system that satisfies XBP 2.0 certification requirements.
    I received some documents of XBP 2.0 from a SAP ICC consultant and reviewed them.
    Now I'm going to prepare for setting up a development environment and to start progamming.
    I have successfully gotton RFC header and library files from SDK.
    And then, I tried to find header and library files for BAPI_XBP_ function calls, but I couldn't find them.
    Can anyone tell me how I can get the header and library files for XBP APIs?
    Someone told me that I should use transaction "BAPI" or "SE37", but I couldn't figure out how to use them.
    Does anyone have a step-by-step document to get BAPI_XBP function calls?
    Regards,
    Yasuhiro Suzuki

    Hello,
    Type 'SE37' into the white box at the top left (if it's not to the right of the green tick, click on the triangle which is there) and enter the function module name and hit f7, then look around.
    Kind regards
    Ash Thomas
    Sap Consultant
    <a href=http://www.ashpeople.com>Ash People, Sap Consultants & Sap Consultancy</a>
    <a href=http://www.ashpeople.com>www.ashpeople.com</a>

  • Cant get my head around preloaders in Flash CS4

    Hi Folks,
    Can anyone help me with preloaders please?
    On my site I have a simple slideshow of 3 images that I have made in Flash. They are layered and the first images starts on frame2, when the final image has finished it loops back to the start to replay, no problems with that.
    However I have the fact that until the swf loads there is an empty box with a white boarder, this only lasts maybe a second or so but I wanted to apply a preloader but cant for the life of me get this to work.
    The instructions with the loader say;
    There is no need to edit your Flash project to implement this loader. This loader (swf) will show your project (swf) once loaded.
    No I have no idea what that means and what I do. I have played around with this for an hour or so and now want to throw my pc out of the window. Very frustrating that I can make a slideshow but cannot for the life of me work this out.
    Attached the preloader file for you to have a look at.
    If anyone has any better preloader ideas that are simple to use I would be SO grateful.
    Thanks, P.

    Hi,
    This still isn't working right. Blimey I didn't think a preloader would be such a task. Well it is to me!
    When I get the earlier suggested numeric preloader to work it seems to mess with the display of my slideshow the first time round. For example it displays the first two images both at once, then the third and once it has done that only then does it display all three images separately.
    Also I was really hoping to use either a pre bought preloader, or at least something a little more creative than numbers from 1 to 100%.
    Any thoughts on doing something a little nicer?
    I have Fireworks and they have some nice preloaders. Seen a tutorial on how to import into Flash but no idea how to make them work and can't find a full tutorial on how to use and make work a Fireworks preloader in Flash.
    Any thoughts would be sooooooooooooooo welcome ;-)

  • I cant get Firefox to download any files including updates. I get an error saying "Windows has closed the filepicker unexpectedly" and Firefox freezes. I use Windows 7 64 bit and I have the error in Firefox 7. Any help much appreciated.

    At any attempt to download even update I get an error that says "Windows has unexpectedly closed the file picker".

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    * https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * https://support.mozilla.com/kb/Firefox+crashes
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx). You can find the IDs of the submitted crash reports on the about:crashes page. You can open the about:crashes page via the location bar, like you open a website.
    See:
    * http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)
    * https://support.mozilla.com/kb/Mozilla+Crash+Reporter
    * https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report

  • Get yer head round this one (Of aperture and iPhoto sharing)

    I am pleased to see intergration with iPhoto now. However for me its the wrong way round!
    I don't use iPhoto on my main mac, I use aperture.
    However I do have iPhoto on my iBook. My iBook will not run aperture yet it does not want to be left out.
    In essences I want to have access to my library via NAS. The nas is probably to slow to use aperture in a proper way.
    I was hoping someone might have a solution with all these great ways to do things with aperture.
    The other thing is I want my photos in two locations. I am achieving this by referencing to DVD.
    Is there a solution, perhaps with Automator, to back up the JPGS from the references to the NAS but retain the normal aperture library in my home directory?
    I know I know I am asking for a lot.

    I've been doing this since Aperture came out - but I just do it manually. Every month I export all my new Aperture images as quality 10 JPGs to fit 2000 by 1600 px into iPhoto libraries on all my other macs. If I ever get worried that the two libraries are totally out of sync I'll just create a new iPhoto library by exporting my whole Aperture library as JPG.

  • Cant get my head around a Transparency problem, help please ;-)

    Hi there,
    I was wondering if anyone could help? I am new'ish to Flash CS4 so hope I am missing something obvious.
    Is it possible to make the background transparent in Flash CS4?
    What I am doing;
    Editing an image in Fireworks CS4 with a transparent background, the image has a drop shadow.
    Exporting as PNG32 to keep transparency.
    In Flash CS4; importing image into Flash but with a black screen as cant seem to make it transparent.
    I have in Flash gone into 'Window Mode' and selected 'Transparent Windowless' option.
    When I have created a very simple appear and hide animation I then export my movie.
    When inserted into my webpage all is well and when published it is fine when viewed in Internet Explorer and Firefox but for some reason not in Safari.
    In Safari the black box appears in the background so the transparency isn't working
    Can this be sorted or should I just hope that no one will view the site using Safari?
    Many thanks in advance. P

    Hi Rothrock,
    Thanks for getting back to me.
    I am sure I have the code right as I have looked at a number of forums with this problem. I have inserted as an image the code just incase you have any words of wisdom, cant seem to cut and paste text on this thing!!!! ;-)
    I don't use Photoshop I use Fireworks and what I am now doing is creating my images in FW the cut and pasting into Flash. After I have finished I ensure 'window mode' is set to 'transparent windowless', publish and then export the swf.
    I then insert this into my webpage.
    What is puzzling is that it works fine in Firefox but not Safari. As said earlier wish I hadn't recently downloaded Safari as I always thought if a page worked in Firefox it would work in all recent browsers.
    *sigh*

  • I cant get my PDF and Excel files to open on my iphone  help!

    Has any one had problems opening a pdf file or excel file in the ISO5 platform, if so how did you fix it

    I use PDF File Viewer, a free app.
    I would download Keynote, Numbers and/or Pages for iOS; they are quality apps made by Apple. You can create, edit and view documents, but these apps are $9.99 each, on the other hand they are of the upmost quality.

  • My msc wont start up after i deleted many of system files. disk utilities says everything is ok but i cant get nowhere becsuse the.missing files

    I tried everything, including sll command

    Ok, it sounds like you will need to start over - make sure you have a backup of your important files, pics, etc. because you have to erase the drive.
    Once you have a backup, try this (it should work since you say the original system was Lion):
    Press Command + Option + R keys while booting up or restarting - this will show you a rotating globe and you should be able to access Apple's servers. Once you're booted up and connected, choose to open Disk Utility and erase your entire hard drive. When that is finished, it should be ready to reinstall the original system. This will take a while because it has to download the whole thing. Once you're finished with that, run Software Update. When that is finished, you can put back the files you backed up.
    After you make sure that everything is working, then you can download Mavericks or Mountain Lion - whichever one you want.

  • I still cant get my head around this:  java.lang.NullPointerException

    heres my disgusting amount of code and its error report. please help. its basically the board for a twixt game. if you dont know what that is its not important because the error has nothing to do with the rules of the game.
    Exception in thread "main" java.lang.NullPointerException
         at Board.pcomp(Board.java:81)
         at Board.addremovebridge(Board.java:34)
         at Twixt.main(Twixt.java:21)
    Thanks again for reading this far.
    public class Twixt {
         public static void main(String[] args) {
              Board game = new Board();
              point p = new point();
              p.x = 4;
              p.y = 4;
              p.p = 1;
              point f = new point();
              f.x = 5;
              f.y = 6;
              p.p = 1;
              String s = new String();
              s = game.placetower(p);
              s = game.placetower(p);
              System.out.println(s);
              s = game.placetower(f);
              System.out.println(s);
              s = game.addremovebridge(p,f);
              System.out.println(s);
              s = game.addremovebridge(p,f);
              System.out.println(s);
    public class point {
         int x = 0;
         int y = 0;
         int p = 0;
    import java.lang.Math;
    public class Board{
         public int[][] board1 = new int[26][26];
         public point[][][] board2 = new point[26][26][6];
         private int board3d;
         private int board3e;
         /*Board() {
              for(int x = 0; x<=25; x++){
                   for(int i = 0; i<=25; i++){
                        for(int j = 0; j<=6;j++){
                             pmakezero(board2[x][j]);
         public String placetower(point d){
              if (board1[d.x][d.y] == 0){
                   board1[d.x][d.y] = d.p;
                   return ("Tower placed at "+d.x+", "+d.y+".");
              }else{
                   return ("That space is already taken.");
         public String addremovebridge(point d, point e){
              if(checkplayer(d,e)){
                   boolean removebridge = false;
                   for(int i = 0; i<=5;i++){
                        if(pcomp(board2[d.x][d.y][i], e)){
                             pmakezero(board2[d.x][d.y][i]);
                             removebridge = true;
                        if(pcomp(board2[e.x][e.y][i], d)){
                             pmakezero(board2[e.x][e.y][i]);
                             removebridge = true;
                   if(distance(d,e)&&!intersect(d,e)&&!removebridge&&!full(d,e)){
                        board2[d.x][d.y][board3d] = e;
                        board2[e.x][e.y][board3e] = d;
                        return ("Bridge placed between "+d.x+", "+d.y+" and "+e.x+", "+e.y+".");
                   }else{
                        return ("That is not a valid bridge placement.");
              }else{
                   return ("That tower does not belong to you.");
         private boolean distance(point d, point e){
              double g;
              int f;
              int i;
              f = d.x - e.x;
              i = d.y - e.y;
              f = f*f;
              i = i*i;
              f = f+i;
              g = f;
              if (g>0){
                   g = g * -1;
              g = Math.sqrt(g);
              if(g == Math.sqrt(5)){
                   return true;
              }else{
                   return false;
         private boolean pcomp(point d, point e){
              if(d.x == e.x && d.y == e.y){
                   return true;
              }else{
                   return false;
         private void pmakezero(point d){
              d.x = 0;
              d.y = 0;
              d.p = 0;
         private boolean checkplayer(point d, point e){
              if(board1[d.x][d.y] == d.p && board1[e.x][e.y]==e.p){
                   return true;
              }else{
                   return false;
         private boolean full(point d, point e){
              point x;
              int y;
              int z;
              boolean full = true;
              for(int i=0; i<=5; i++){
                   x = board2[d.x][d.y][i];
                   y = x.x;
                   z = x.y;
                   if(y == 0 && z == 0){
                        board3d = i;
                        i = 3;
                        full = false;
              for(int i=0; i<=3; i++){
                   x = board2[e.x][e.y][i];
                   y = x.x;
                   z = x.y;
                   if(y == 0 && z == 0){
                        board3e = i;
                        i = 3;
                        full = false;
              return full;
         private boolean intersect(point d, point e){
              boolean inter = false;
              int f;
              int h;
              f = d.x - e.x;
              h = d.y - e.y;
              if(f == 2 && h == 1){
                   if(board1[e.x + 1][e.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x + 2][e.y + 2][w]==e){
                                  inter = true;
                             }else if(board2[e.x][e.y + 2][w]==e){
                                  inter = true;
                   }else if(board1[d.x - 1][d.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x - 2][d.y - 2][w]==d){
                                  inter = true;
                             }else if(board2[d.x][d.y - 2][w]==d){
                                  inter = true;
                   }else if(board1[e.x + 2][e.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x + 1][e.y + 2][w]==e){
                                  inter = true;
                   }else if(board1[d.x - 2][d.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x - 1][d.y - 2][w]==d){
                                  inter = true;
              }else if(f == -2 && h == -1){
                   if(board1[e.x - 1][e.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x - 2][e.y - 2][w]==e){
                                  inter = true;
                             }else if(board2[e.x][e.y - 2][w]==e){
                                  inter = true;
                   }else if(board1[d.x + 1][d.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x + 2][d.y + 2][w]==d){
                                  inter = true;
                             }else if(board2[d.x][d.y + 2][w]==d){
                                  inter = true;
                   }else if(board1[e.x - 2][e.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x - 1][e.y - 2][w]==e){
                                  inter = true;
                   }else if(board1[d.x + 2][d.y]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x + 1][d.y + 2][w]==d){
                                  inter = true;
              }else if(f == 1 && h == 2){
                   if(board1[e.x][e.y + 1]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x + 2][e.y + 2][w]==e){
                                  inter = true;
                             }else if(board2[e.x + 2][e.y][w]==e){
                                  inter = true;
                   }else if(board1[d.x][d.y - 1]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x - 2][d.y - 2][w]==d){
                                  inter = true;
                             }else if(board2[d.x - 2][d.y][w]==d){
                                  inter = true;
                   }else if(board1[e.x][e.y + 2]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x + 2][e.y + 1][w]==e){
                                  inter = true;
                   }else if(board1[d.x][d.y - 2]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x - 2][d.y - 1][w]==d){
                                  inter = true;
              }else if(f == -1 && h == -2){
                   if(board1[e.x][e.y - 1]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x - 2][e.y - 2][w]==e){
                                  inter = true;
                             }else if(board2[e.x - 2][e.y][w]==e){
                                  inter = true;
                   }else if(board1[d.x][d.y + 1]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x + 2][d.y + 2][w]==d){
                                  inter = true;
                             }else if(board2[d.x + 2][d.y][w]==d){
                                  inter = true;
                   }else if(board1[e.x][e.y - 2]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[e.x - 2][e.y - 1][w]==e){
                                  inter = true;
                   }else if(board1[d.x][d.y + 2]!=0){
                        for(int w=0;w<=5;w++){
                             if(board2[d.x + 2][d.y + 1][w]==d){
                                  inter = true;
              return inter;
    Thank you.

    Exception in thread "main"
    java.lang.NullPointerException
         at Board.pcomp(Board.java:81)
         at Board.addremovebridge(Board.java:34)
         at Twixt.main(Twixt.java:21)
    So the null pointer occurs on the 81st line in the Board.java source code file. I'm not sure, but I expect this is line 81.if(d.x == e.x && d.y == e.y){Here's one way to troubleshoot null pointer problems. First find the line causing the error. Then, use System.out.println() statements to display the values of all the reference variables in that line, one variable at a time. So if I guessed correctly on line 81, you would put these statements just before line 81System.out.println("d " + d);
    System.out.println("e " + e);Because d and e are the only reference variables in that line. When you run the code after putting these lines in, one or both of these will display "null" and that will tell you which variable to trace. You will need to trace backward through your code a find out why d or e or both are null.
    (hint: A statement like Object[] objects = new Object[10];" creates an Object array with 10 elements, each of which is null. You have to use "objects[1] = new Object();" to create an element in the array which is an Object.)

  • How to get the header to downloading fine

    Hi,
    i am downloading xl file for which i need to get the header.i doesnt no the fieldnames.how to get the header for entire file.

    Hi,
    For this please create an internal table for field names and pass it to FM' WS_DOWNLOAD'.
    Sample code:
    * internal table for headers
    DATA : BEGIN OF it_fieldnames OCCURS 0,
           name(100),
           END OF it_fieldnames.
    g_fname = 'C:\Documents and Settings\kut3kor\Desktop\kar4.xls'.
    *populate the internal table
    it_fieldnames-name = 'Material Number'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material type'.
    APPEND it_fieldnames.
    it_fieldnames-name = 'Material group'.
    APPEND it_fieldnames.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    *   BIN_FILESIZE                  = ' '
    *   CODEPAGE                      = ' '
       FILENAME                      = g_fname
       FILETYPE                      = 'DAT'
    *   MODE                          = ' '
    *   WK1_N_FORMAT                  = ' '
    *   WK1_N_SIZE                    = ' '
    *   WK1_T_FORMAT                  = ' '
    *   WK1_T_SIZE                    = ' '
    *   COL_SELECT                    = ' '
    *   COL_SELECTMASK                = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        data_tab                      = gt_mara[]
       FIELDNAMES                    = it_fieldnames[]
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_WRITE_ERROR              = 2
    *   INVALID_FILESIZE              = 3
    *   INVALID_TYPE                  = 4
    *   NO_BATCH                      = 5
    *   UNKNOWN_ERROR                 = 6
    *   INVALID_TABLE_WIDTH           = 7
    *   GUI_REFUSE_FILETRANSFER       = 8
    *   CUSTOMER_ERROR                = 9
    *   OTHERS                        = 10
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Karuna.

  • Cant get list of files from a folder (even though the folder and files are created with the same app)

    Ok so each character rolled with my app gets saved as an html file in a folder i create on the sdcard called RpgApp
    the code to do this is 
    private async Task saveToHtmlCharacter(string name)
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder sdcard = (await externalDevices.GetFoldersAsync()).FirstOrDefault(); //Windows.Storage.ApplicationData.Current.LocalFolder;
    var dataFolder = await sdcard.CreateFolderAsync("RpgApp",
    CreationCollisionOption.OpenIfExists);
    var file = await dataFolder.CreateFileAsync(name+".html",
    CreationCollisionOption.ReplaceExisting);
    using (StreamWriter writer = new StreamWriter(await file.OpenStreamForWriteAsync()))
    writer.WriteLine("<html><head><title>Character File for " + z.charNameFirst + " " + z.charNameSecond + "</title></head><body>");
    //trimed for the post
    now this as i say works perfectly and i can confirm that the files show up in the "RpgApp"folder
    now the next step is to have the app read the names of each of those html files and create a seperate button for each one named for the filename and with the filename as content (later i will link them up to load the html file they are named for in a webbrowser
    panal)
    here is the code that *should* do that
    private async Task readFiles()
    z.test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    IReadOnlyList<StorageFile> fileList = await folder.GetFilesAsync();
    //z.test.Add("dummy");
    foreach (StorageFile file in fileList)
    z.test.Add(file.Name);
    public async void buttonTest()
    await readFiles();
    CoreDispatcher dispatcher = CoreWindow.GetForCurrentThread().Dispatcher;
    await dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    foreach (string name in z.test)
    Button button1 = new Button();
    button1.Height = 75;
    button1.Content = name;
    button1.Name = name;
    testStackPanal.Children.Add(button1);
    now i say should as what i get is an error of "A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.ni.dll" (2 of them in fact one after another)
    more detailed error is at http://pastebin.com/3hBaZLQ9
    now i went through checking line after line to find the error and line that causes it is:
    StorageFolder folder = (await externalDevices.GetFolderAsync("RpgApp"));
    in the readFiles method
    i checked to make sure the case is right etc and its spot on, that IS the folder name, and remember my app creates that folder and creates the files that are inside that folder (and only files my app creates are in that folder) so it should have access
    im 100% stuck its taken me all day to get the files to save and now i cant get them to list correctly
    I have tested the button creation function with fake list data and that worked fine, as i say the error is when i tell it to look at the folder it created
    all help most greatfully recieved

    this was actually solved for me on another forum thread 
    async Task<bool> continueToReadAllFiles(StorageFolder folder)
    if (folder == null)
    return false;
    if (folder.Name.Equals("RpgApp", StringComparison.CurrentCultureIgnoreCase))
    var files = await folder.GetFilesAsync();
    foreach (var file in files)
    test.Add(file.Name);
    return false;
    var folders = await folder.GetFoldersAsync();
    foreach (var child in folders)
    if (!await continueToReadAllFiles(child))
    return false;
    return true;
    public async void buttonTest()
    test.Clear();
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    var folders = await externalDevices.GetFoldersAsync();
    foreach (var folder in folders)
    if (!await continueToReadAllFiles(folder))
    break;
    //.... commented out
    ...now i say solved this is more a workaround...but it works.
    I would love to know why we cant just scan the RpgApp folder instead of having to scan the whole dc card and disregard all thats not in the RpgApp folder

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • Cant get data from text file to print into Jtable

    Instead of doing JDBC i am using text file as database. I cant get data from text file to print into JTable when i click find button. Goal is to find a record and print that record only, but for now i am trying to print all the records. Once i get that i will change my code to search desired record and print it. when i click the find button nothing happens. Can you please take a look at my code, dbTest() method. thanks.
    void dbTest() {
    DataInputStream dis = null;
    String dbRecord = null;
    String hold;
    try {
    File f = new File("customer.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
    Vector dataVector = new Vector();
    Vector headVector = new Vector(2);
    Vector row = new Vector();
    // read the record of the text database
    while ( (dbRecord = dis.readLine()) != null) {
    StringTokenizer st = new StringTokenizer(dbRecord, ",");
    while (st.hasMoreTokens()) {
    row.addElement(st.nextToken());
    System.out.println("Inside nested loop: " + row);
    System.out.println("inside loop: " + row);
    dataVector.addElement(row);
    System.out.println("outside loop: " + row);
    headVector.addElement("Title");
    headVector.addElement("Type");
    dataTable = new JTable(dataVector, headVector);
    dataTableScrollPane.setViewportView(dataTable);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("Uh oh, got an IOException error!" + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
    try {
    dis.close();
    } catch (IOException ioe) {
    } // end if
    } // end finally
    } // end dbTest

    Here's a thread that loads a text file into a JTable:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=315172
    And my reply in this thread shows how you can use a text file as a simple database:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=342380

  • How to get summary columns in delimited text file

    How to get summary columns in delimited text file
    I am trying to generate a delimited text file output with delimited_hdr = no.The report is a Group above report with summary columns at the bottom.In the text file the headers are not getting repeated & thats ok.The problem is the summary data is getting repeated for each row of data.Is there a way where i will get all the data & summary data will get displayed only once.I have to import the delimited text file in excel spreadsheet.

    Sorry there were a typos :
    When I used desformat=DELIMITEDDATA with desttype=FILE, I get error "unknown printer driver DELIMITEDDATA". When you look for help, DELIMITED is not even listed as one of the values for DESTFORMAT. But if you scroll down and look for DELIMITER it says , this works only in conjuction with DESTFORMAT=DELIMITED !!!!!!??!! This is in 9i.
    Has this thing worked for anybody ? Can anyone please tell if they were able to suppress the sumary columns or the parent columns of a master-detail data for that matter ?

Maybe you are looking for

  • ASA 5510 VPN Peer License Question

    I just got a new ASA 5510 Base Model and I have some questions I would love some help on. 1) I was under the impression that the ASA 5510 could support 250 VPN Peers. When I do a show version on this new unit I am told VPN Peers are only 50. I would

  • Can't boot after imaging hard drive

    Hi, I have two T60 laptops.  I reimaged both and one boots fine.  The other only goes to a blinking cursor.  Is this due to the security chip?  I went into the bios, but it already said disabled. It shows this message right before it goes to the blin

  • Does BPM 11.1.1.7 support parameter roles properties in LDAP?

    Dear Expert:            I know the BPM 11.1.1.5 support paramter roles,but it seems we must extent user properties then using these as parameter,I want to know can I using properties in user's LDAP properties then using as parameter in 11.1.1.7?     

  • Express vi Title position

    Hello, in the Express VI I can specify the custom VI title that will be finally placed in block diagram. Can I also change the positon of the label? The problem is, that if I want to have 2 lines label, it is always placed over the VI icon: Thanks, M

  • Monitoring MII with CCMSR

    Hi all, I'd like to monitor MII with RZ20 in ABAP. But there seems to be a problem: In SAP document "SAP xApp Manufacturing Integration and Intelligence" (https://websmp110.sap-ag.de/~sapdownload/011000358700000484242007E/SAPxMII120_SOLOP.pdf) descri