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

Zaprt
Objavljeno pred več kot 6 leti

$10-30 USD

Plačilo ob dostavi
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] ) } } } }
ID projekta: 15632062

Več o projektu

9 ponudb
Projekt na daljavo
Aktivno pred 6 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
9 freelancerjev je oddalo ponudbo s povprečno vrednostjo $32 USD za to delo
Avatar uporabnika
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 v 1 dnevu
4,9 (25 ocen)
6,9
6,9
Avatar uporabnika
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 v 1 dnevu
4,4 (28 ocen)
7,1
7,1
Avatar uporabnika
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 v 3 dneh
5,0 (3 ocen)
4,0
4,0
Avatar uporabnika
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 v 1 dnevu
5,0 (7 ocen)
3,7
3,7
Avatar uporabnika
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 v 1 dnevu
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava UNITED STATES
Bonita Springs, United States
5,0
143
Plačilna metoda je verificirana
Član(ica) od okt. 25, 2004

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.