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

Fermé
Publié il y a plus de 6 ans

$10-30 USD

Payé lors de la livraison
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] ) } } } }
N° de projet : 15632062

Concernant le projet

9 propositions
Projet à distance
Actif à il y a 6 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
9 freelances proposent en moyenne $32 USD pour ce travail
Avatar de l'utilisateur
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 en 1 jour
4,9 (25 commentaires)
6,9
6,9
Avatar de l'utilisateur
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 en 1 jour
4,4 (28 commentaires)
7,1
7,1
Avatar de l'utilisateur
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 en 3 jours
5,0 (3 commentaires)
4,0
4,0
Avatar de l'utilisateur
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 en 1 jour
5,0 (7 commentaires)
3,7
3,7
Avatar de l'utilisateur
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 en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
Bonita Springs, United States
5,0
143
Méthode de paiement vérifiée
Membre depuis oct. 25, 2004

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.