How to get the filename without the extension in Java??

Can anyone tell me how to get the filename without the extension? Example: fileNameWithExt = "test.xml"; fileNameWi...

How to rename a file in Ruby??

Here's my .rb file: puts "Renaming files..." folder_path = "/home/papuccino1/Desktop/Test" Dir.glob(folder_path + ...

Python IOError: File not open for reading?

I get an error when I try to open a file in Python. Here is my code : >>> import os.path >>> os.p...

How can I check file size in Python??

I am writing a Python script in Windows. I want to do something based on the file size. For example, if the size is ...

filename and line number of python script?

How can I get the file name and line number in python script. Exactly the file information we get from an exceptio...

Android: android.content.res.Resources$NotFoundException: String resource ID #0x5?

I get the exception from the title when I run my app. What it does is it has a .txt file with words for a Hangman ga...

Get the number of lines in a text file using R?

Is there a way to get the number of lines in a file without importing it? So far this is what I am doing myfiles &...

Can I edit an iPad's host file??

I doubt this is possible without extensive jail-breaking, but is it at all possible to edit the iPad's (or any iOS d...

How to read numbers from file in Python??

I'd like to read numbers from file into two dimensional array. File contents: line containing w, h h lines conta...

File first line is not read in c++?

in.open(filename.c_str(), ifstream::in); string name, email, group; while (in >> name >> email &gt...

How do I read from a text file into a 2 dimensional array in Java?

I am trying to read a text file filled with numbers into a 2 dimensional integer array as can be seen in the read bu...

C - Read file and count rows and columns?

I am trying to make a function to read a file It should count the rows and columns Set the global variables to be t...

Remove parts of text file C++?

I have a text file called copynumbers.txt that I need to delete some numbers after a number while using Example woul...

Find the .class file compiled by Eclipse?

Question(s): How am I supposed to compile just one class? How do I put it INTO the class file (which I've created)?...