| | |
How to output random line from a file
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Yes, even whitespace counts as a character. To detect a whitespace, use the function
Character.isWhitespace(char ch) . I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
![]() |
Similar Threads
- File I/O (Reading from a Random-Access File) NEW (C++)
- Random Salary (Java)
- Input/Output Code Help Please! (C++)
- splitting files: seemingly random error disappears in debug mode (Python)
- Reading in a random line from a file (C++)
- C++ How can read from file.txt & where can save this file(file.txt) to start reading (C++)
- File operations (C)
- parse a .txt file (Java)
- Help, record arrays (VB.NET)
Other Threads in the Java Forum
- Previous Thread: New Line......?
- Next Thread: basic questions
Views: 4253 | Replies: 10
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie number object objects oracle oriented panel print problem program programming project projects recursion replaydirector reporting researchinmotion return robot rotatetext scanner score screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows






