Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.FileInputStream;

import java.io.IOException;
import java.util.Properties;

public class Main {
    /**
     * Read file from SDCARD
     * 
     * @param filepath
     * @throws IOException
     */
    public static void readfromsdcard(String filepath) throws IOException {
        // FileInputStream fis = new FileInputStream("sdcard/test.properties");
        FileInputStream fis = new FileInputStream(filepath);
        Properties cfg = new Properties();
        cfg.load(fis);
    }
}