I know how to read maybe values in files, but is there a way to for example get names of files in a directory and manipulate somehow this files?
8 1528
I know how to read maybe values in files, but is there a way to for example get names of files in a directory and manipulate somehow this files?
Did you read the API documentation for the File class? Your answer can
be found there.
kind regards,
Jos
Hi, did you guys sometimes use those powerful java IDE's, they are open sources and they are very helpful with usage of java API's, currently eclipse is the best, for example if you declare something like:
Flile f = new File("path and file name ");
and if you type 'f.' and wait for a second, it will list all the operations that you can do or get from file object. hope this will help a lot that API's than asking API related question, he are hoping to get more program structures(OOP) related like inheritance, polymophism and encapsulation questions, remember PIE ....
Sam Rabophala
Hi, did you guys sometimes use those powerful java IDE's, they are open sources and they are very helpful with usage of java API's, currently eclipse is the best, for example if you declare something like:
Flile f = new File("path and file name ");
and if you type 'f.' and wait for a second, it will list all the operations that you can do or get from file object. hope this will help a lot that API's than asking API related question, he are hoping to get more program structures(OOP) related like inheritance, polymophism and encapsulation questions, remember PIE ....
Sam Rabophala
The OP didn't even know that s/he should use the File class; what is an IDE to do
then? If beginners followed up your advice this forum would be swamped with
question from people like "how do I so and so with my IDE?" All those IDEs
do is hide those basic mechanics for you but you still have to understand those
basics in order to work properly with an IDE.
The keyword here is "reading". People just don't read anymore before they start
typing and simply hope for the best which basically means they curse Java
because it doesn't work like visual basic does it. Posession of computers at
home should be made a grave felony.
kind regards,
Jos
Thanks for your help, it really helped a lot, now I know what to do.
...you are still correct bt nothing aimed for the people to struggle a lot before they get how simple and efficient for the Java code to be implemented. we must still guide peple how to get this things easy and usable without going extra miles, when I start with developing carrier I used to ask my self how could people implement morethan 20 000 line of code per day... and you knows the answer...! Sam Rabophala
...you are still correct bt nothing aimed for the people to struggle a lot before they get how simple and efficient for the Java code to be implemented. we must still guide peple how to get this things easy and usable without going extra miles, when I start with developing carrier I used to ask my self how could people implement morethan 20 000 line of code per day... and you knows the answer...! Sam Rabophala
How I learned to program: C and Emacs, with Dennis Ritchie's book "The C Programming Language" by my elbow.
How I learned to program: C and Emacs, with Dennis Ritchie's book "The C Programming Language" by my elbow.
I use VI(M) so we're enemies for life; btw LOCs of code, as the previous replier
mentioned, is a very bad metric; I feel happy after a day of negative LOCs ...
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Joel Goldstick |
last post by:
I wanted to write a simple page to let me choose a directory and then list
the files in it. The end goal was to make an easy way to copy all the
file names in a directory. I tested with Opera7,...
|
by: Michael Palmer |
last post by:
I'm reading xml from SQL Server 2K with VB.net using an XSD schema file
and SQLXML 3.0. I have the below code working fine, but I'd like to change
the code from reading the schema file from a...
|
by: Nick |
last post by:
Is it possible to read a list of files from a specified directory using
VB.net
We have company intranet and I have created a page that displays photos from
different events.
I have coded a page...
|
by: William Sullivan |
last post by:
I have an application that pulls images from a physical drive directory,
creates a PDF of the image, caches the image, and returns a link to the
client (using ajax, but that's not the problem). ...
|
by: Jason Kumpf |
last post by:
OK I've been staring at this code all day and still with everything I
have tried I cannot figure out two problems I am having. Once is why
the space limit for the directory I create in the code...
|
by: Craig Vermeer |
last post by:
Hi All,
I have a program that's using the file system as a queuing mechanism,
and it's consuming an inordinate amount of CPU time when the file system
queue gets all that large (any more than a...
|
by: farseer |
last post by:
Hi,
I am storing certain files in the same directory as an asp page. I'd
like for that page to be able to read read the names of the files in
that directory with a certain extension and create a...
|
by: waynetheengineer |
last post by:
Hello everyone :)
I am trying to write VB code for reading filenames and file property values in a specific directory.
For example, I have a directory called C:/Bears and in that directory...
|
by: supra91 |
last post by:
Hi,
I have to read files from the parent directory and delete those files. This parent directory contains logs files. This directory also contains some sub directories and I do not want to delete...
|
by: Laharl |
last post by:
My Operating Systems professor has assigned homework that basically boils down to implementing ls -lra, but with a different output format. In other words, list the files and subdirectories (and a...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |