Jump to content

Recommended Posts

Posted

[quote name='dhruva' timestamp='1377060595' post='1304142444']


yaa edhaina file sharing websitelo upload cheyyi bhayya...link ikda post cheyyi or pm cheyyi
[/quote]

pmed

Posted

[quote name='Iamking' timestamp='1377061374' post='1304142543']

pmed
[/quote]


thank you bhayya..

Posted

intro to algos online ..................[url="http://en.tjcities.com/wp-content/uploads/Books/Algorithms_3rd.pdf"]http://en.tjcities.com/wp-content/uploads/Books/Algorithms_3rd.pdf[/url]

Posted

Bhayyalu, nenu properties file use chesi oka folder nunchi inko folder ki files transfer cheyyali. Adhi java lo ela cheyacchu ??

Posted

[quote name='*Prince Charming' timestamp='1377096062' post='1304143975']
Bhayyalu, nenu properties file use chesi oka folder nunchi inko folder ki files transfer cheyyali. Adhi java lo ela cheyacchu ??
[/quote]
simple kada bayya

Is it FTP or with in the same machine ?

google lo full code vundi ..kavalante cheppu helping sestha ...but very simple try by ur self ...if need help let me know

Posted

[quote name='cherlapalli_jailer' timestamp='1377096206' post='1304143986']
simple kada bayya

Is it FTP or with in the same machine ?

google lo full code vundi ..kavalante cheppu helping sestha ...but very simple try by ur self ...if need help let me know
[/quote]
FTP kaadu bhayya, nenu oka Spring quartz timer vaadtunnanu. Adhi run ainappudu Folder A lo unna Files Folder B , next Folder C ki vellali. Idhi ela cheyatam ????

Posted

[quote name='*Prince Charming' timestamp='1377096324' post='1304143996']
FTP kaadu bhayya, nenu oka Spring quartz timer vaadtunnanu. Adhi run ainappudu Folder A lo unna Files Folder B , next Folder C ki vellali. Idhi ela cheyatam ????
[/quote]

ok
first constants ani class raayi static
load all the constants from properties file

next

write a method and use file move option

then it will move from A to B and will delete from A...

if u don't want to delete from A then ...
then use File Read and File write classes

Posted

[color=#000000][b]public[/b][/color] [color=#000000][b]class[/b][/color] MoveFileExample
[color=#009900]{[/color]
[color=#000000][b]public[/b][/color] [color=#000000][b]static[/b][/color] [color=#000066][b]void[/b][/color] main[color=#009900]([/color][color=#003399]String[/color][color=#009900][[/color][color=#009900]][/color] args[color=#009900])[/color]
[color=#009900]{[/color]
[color=#000000][b]try[/b][/color][color=#009900]{[/color]

[color=#003399]File[/color] afile [color=#339933]=[/color][color=#000000][b]new[/b][/color] [color=#003399]File[/color][color=#009900]([/color][color=#0000FF]"C:[color=#000099][b]\\[/b][/color]folderA[color=#000099][b]\\[/b][/color]Afile.txt"[/color][color=#009900])[/color][color=#339933];[/color]

[color=#000000][b]if[/b][/color][color=#009900]([/color]afile.[color=#006633]renameTo[/color][color=#009900]([/color][color=#000000][b]new[/b][/color] [color=#003399]File[/color][color=#009900]([/color][color=#0000FF]"C:[color=#000099][b]\\[/b][/color]folderB[color=#000099][b]\\[/b][/color]"[/color] [color=#339933]+[/color] afile.[color=#006633]getName[/color][color=#009900]([/color][color=#009900])[/color][color=#009900])[/color][color=#009900])[/color][color=#009900])[/color][color=#009900]{[/color]
[color=#003399]System[/color].[color=#006633]out[/color].[color=#006633]println[/color][color=#009900]([/color][color=#0000FF]"File is moved successful!"[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color][color=#000000][b]else[/b][/color][color=#009900]{[/color]
[color=#003399]System[/color].[color=#006633]out[/color].[color=#006633]println[/color][color=#009900]([/color][color=#0000FF]"File is failed to move!"[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]

[color=#009900]}[/color][color=#000000][b]catch[/b][/color][color=#009900]([/color][color=#003399]Exception[/color] e[color=#009900])[/color][color=#009900]{[/color]
e.[color=#006633]printStackTrace[/color][color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[color=#009900]}[/color]

Posted

[quote name='cherlapalli_jailer' timestamp='1377097014' post='1304144097']
[color=#000000][b]public[/b][/color] [color=#000000][b]class[/b][/color] MoveFileExample
[color=#009900]{[/color]
[color=#000000][b]public[/b][/color] [color=#000000][b]static[/b][/color] [color=#000066][b]void[/b][/color] main[color=#009900]([/color][color=#003399]String[/color][color=#009900][[/color][color=#009900]][/color] args[color=#009900])[/color]
[color=#009900]{[/color]
[color=#000000][b]try[/b][/color][color=#009900]{[/color]

[color=#003399]File[/color] afile [color=#339933]=[/color][color=#000000][b]new[/b][/color] [color=#003399]File[/color][color=#009900]([/color][color=#0000FF]"C:[color=#000099][b]\\[/b][/color]folderA[color=#000099][b]\\[/b][/color]Afile.txt"[/color][color=#009900])[/color][color=#339933];[/color]

[color=#000000][b]if[/b][/color][color=#009900]([/color]afile.[color=#006633]renameTo[/color][color=#009900]([/color][color=#000000][b]new[/b][/color] [color=#003399]File[/color][color=#009900]([/color][color=#0000FF]"C:[color=#000099][b]\\[/b][/color]folderB[color=#000099][b]\\[/b][/color]"[/color] [color=#339933]+[/color] afile.[color=#006633]getName[/color][color=#009900]([/color][color=#009900])[/color][color=#009900])[/color][color=#009900])[/color][color=#009900])[/color][color=#009900]{[/color]
[color=#003399]System[/color].[color=#006633]out[/color].[color=#006633]println[/color][color=#009900]([/color][color=#0000FF]"File is moved successful!"[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color][color=#000000][b]else[/b][/color][color=#009900]{[/color]
[color=#003399]System[/color].[color=#006633]out[/color].[color=#006633]println[/color][color=#009900]([/color][color=#0000FF]"File is failed to move!"[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]

[color=#009900]}[/color][color=#000000][b]catch[/b][/color][color=#009900]([/color][color=#003399]Exception[/color] e[color=#009900])[/color][color=#009900]{[/color]
e.[color=#006633]printStackTrace[/color][color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
[color=#009900]}[/color]
[/quote]
Thanks bhayya, idhi try chestanu. Naaku mottam source code link post chestaava plzz. Ekkadaina stuck aite neeku Pm chestaanu.

Posted

[quote name='*Prince Charming' timestamp='1377097330' post='1304144139']
Thanks bhayya, idhi try chestanu. Naaku mottam source code link post chestaava plzz. Ekkadaina stuck aite neeku Pm chestaanu.
[/quote]
[url="http://www.mkyong.com/java/how-to-move-file-to-another-directory-in-java/"]http://www.mkyong.com/java/how-to-move-file-to-another-directory-in-java/[/url]

ediana doubt vunte PM me

Posted

[quote name='cherlapalli_jailer' timestamp='1377096602' post='1304144033']

ok
[color=#ff0000][b]first constants ani class raayi static
load all the constants from properties file[/b][/color]

next

write a method and use file move option

then it will move from A to B and will delete from A...

if u don't want to delete from A then ...
then use File Read and File write classes
[/quote]

idanta chesaanu, code kuda rasaanu, kaani filenotfound exception throw chestondi..

Posted

[quote name='*Prince Charming' timestamp='1377097490' post='1304144157']

idanta chesaanu, code kuda rasaanu, kaani [b]filenotfound[/b] exception throw chestondi..
[/quote]

try to print what filename ur reading?
may beproperty sarigga read avvaka povachu

or

say for ex....c:\xx\yy\z.txt anuko

what is there is config file?

path=c:\xx\yy
file name = z.txt

ala vunnada?

Posted

[quote name='cherlapalli_jailer' timestamp='1377098693' post='1304144323']

try to print what filename ur reading?
may beproperty sarigga read avvaka povachu

or

say for ex....c:\xx\yy\z.txt anuko

what is there is config file?

path=c:\xx\yy
file name = z.txt

ala vunnada?
[/quote]
path set cheyaledu bhayya config file lo, maybe that's y i'm seeing this exception. will try again and let u know.

Posted

[quote name='*Prince Charming' timestamp='1377100197' post='1304144495']

path set cheyaledu bhayya config file lo, maybe that's y i'm seeing this exception. will try again and let u know.
[/quote]Path must or else it will look in the current dir

Posted

[quote name='Java01' timestamp='1377095085' post='1304143906']
intro to algos online ..................[url="http://en.tjcities.com/wp-content/uploads/Books/Algorithms_3rd.pdf"]http://en.tjcities.c...orithms_3rd.pdf[/url]
[/quote]

Thank you ..
bookmarked and updating in the pdf's thread .. [url="http://www.andhrafriends.com/topic/360365-only-pdfs-and-video-tutorials/page__st__405__gopid__1304161745#entry1304161745"][b]link[/b][/url]

×
×
  • Create New...