Find Jobs
Hire Freelancers

Fix code to read in two text files in Swift 4, OSX, when one file name is selected.

$10-30 USD

Lukket
Slået op over 6 år siden

$10-30 USD

Betales ved levering
I have the following code to read in two text files located in the same directory. It reads in the first file but then says I don't have the permission to read in the second throwing the following error: The file “[login to view URL]” couldn’t be opened because you don’t have permission to view it. @IBAction func OpenDVAFile(_ sender: Any) { let dialog = NSOpenPanel(); [login to view URL] = "Choose a .dva or .tsn file"; [login to view URL] = true; [login to view URL] = false; [login to view URL] = true; [login to view URL] = true; [login to view URL] = false; [login to view URL] = ["dva", "tsn"]; if ([login to view URL]() == [login to view URL]) { let result = [login to view URL] // Pathname of the file if (result != nil) { do { // Remove the file extension let baseFile = result?.deletingPathExtension() // Open the TSN File let tsnFileURL = baseFile?.appendingPathExtension("TSN") let tsnFileString = try String( contentsOf: tsnFileURL!) // Open the DVA File let dvaFileURL = baseFile?.appendingPathExtension("DVA") let dvaFileString = try String( contentsOf: dvaFileURL!) } catch { print( [login to view URL] ) } } } }
Projekt-ID: 15632062

Om projektet

9 forslag
Projekt på afstand
Aktiv 6 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
9 freelancere byder i gennemsnit $32 USD på dette job
Brug Avatar.
Hi Sir I can do your project perfectly. I have rich experience in Mobile Development for 8 years. It is no problem for me. Relevant Skills and Experience Mobile Developer Proposed Milestones $25 USD - Further
$25 USD på 1 dag
4,9 (25 anmeldelser)
6,9
6,9
Brug Avatar.
Hi. How are you? Would you send me your source project please? I can check your source and find solution for your project. Thanks
$25 USD på 1 dag
4,4 (28 anmeldelser)
7,1
7,1
Brug Avatar.
Hi, I have 5 years experience in iOS application development. I think i can help you and contribute to successfully build your application. Thanks. Relevant Skills and Experience I have 5 years experience in iOS application development. Proposed Milestones $111 USD - bug Fix
$111 USD på 3 dage
5,0 (3 anmeldelser)
4,0
4,0
Brug Avatar.
While I were checking your code instead of you are reading two different file, you just adding the path extension of same file. Either one case will fail. Second please check whether the file is not corrupted and able it read it in any other software. I hope this will help you. If it still not working you can assign this project. I can solve this. I have 7 years of exp in mobile tech and I have been working sift from its version 1.0. I have completed two apps in Mac cocoa using swift. I m new to freelance and happy to show my experience if you give me an opportunity. Happy to work with you.
$20 USD på 1 dag
5,0 (7 anmeldelser)
3,7
3,7
Brug Avatar.
Hello, Did you check the permission of the file? I think it doesn't have proper read permission. I can fix it in 1 hr. Thanks Relevant Skills and Experience Swift, IOS app development Proposed Milestones $20 USD - Fix Issue
$20 USD på 1 dag
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for UNITED STATES
Bonita Springs, United States
5,0
143
Betalingsmetode verificeret
Medlem siden okt. 25, 2004

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.