A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_sessionl6mvt15liap4mevr8of9ip1m7q5u0m2b): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

Get the file type from file name in Java | Khushi268
Coders Packet

Get the file type from file name in Java

By Khushi Jain

In this module, we will learn how to get file type/extension from the file name in Java.

A file extension or file type denotes the format of the file.

For example, 

Let's say there is one file image.png, here, .png denotes the extension of the file.

This module will use the fileType() method that returns the file type to the Main() method. The Main() method then calls the fileType() and prints the required file type.

Also, if your file doesn't exist on your computer, then it will not print the file type.

Platform required: IntelliJ IDEA

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Khushi Jain (Khushi268)

Download packets of source code on Coders Packet