M megaB4x Member Licensed User Longtime User Aug 16, 2016 #1 Hi everyone, I am diving into the world for B4J so please bear with me. I would like to check if the file exists on server using UNC path. \\someServer\someFolder\someFile.txt B4X: If File.Exists(File.?, "someFile.txt") Then ... How can I check if the file exists on a server from any platform and if it exists then read the content line by line. Thanks for your help!
Hi everyone, I am diving into the world for B4J so please bear with me. I would like to check if the file exists on server using UNC path. \\someServer\someFolder\someFile.txt B4X: If File.Exists(File.?, "someFile.txt") Then ... How can I check if the file exists on a server from any platform and if it exists then read the content line by line. Thanks for your help!
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2016 #2 Have you tried: B4X: If File.Exists("\\someServer\someFolder\SomeFile.txt", "") Upvote 0